| T O P I C R E V I E W |
| coll@inia. |
Posted - 08/07/2004 : 08:04:36 AM I am trying to mark nonselected rows from a selected column of 7 rows of data by script, so that the non selected data do not go into a complex label in where I want to show only the >2 <4 total number of data used for the calculations (sometimes are the first 1,2,3 others the 3,4,5,6, etc). I am using the folowing script to sucessfully interpolate values in a fit sigmoidal curve: for(i=wks.c1;i<=wks.c2;i++) { for(j=wks.r1;j<=wks.r2;j++) { %(%H,i,j)=$(nlsf.funcVal(%(%H,i,j))); mark -w1 %(%H,i) -b?? -e?? ..................????; }; }; Therefore, I would like to mark -w1 the rest of the values that were not selected for the interpolation. Could you give me a handy hand? Thank you for your attention, sincerely, julio |
| 2 L A T E S T R E P L I E S (Newest First) |
| coll@inia. |
Posted - 08/09/2004 : 07:12:31 AM Thank you Sammi, for your recomendations on the use of ii, further your marking/selecting procedure works beautifully! Thanks again, julio |
| sammi.song |
Posted - 08/08/2004 : 11:30:13 PM Hi julio,
I would recommend using 'ii' and 'jj' instead of 'i' and 'j' as the variables - Origin sometimes uses 'i' and 'j' internally to do some housekeeping tasks. It probably is not the problem in this script, but may be problematic in future scripts. The following script can mask the unselected data, hope it's useful.
A=wks.c1; //Save the selected column range B=wks.c2; for(ii=A;ii<=B;ii++) { for(jj=wks.r1;jj<=wks.r2;jj++) { %(%H,ii,jj)=$(nlsf.funcVal(%(%H,ii,jj))); // interpolation mark -w1 %(%H,ii) -b wks.r1 -e wks.r2; //mask all selected data worksheet -s ii wks.r1 ii wks.r2; //respectively activate one of selected dataset mark -sw %C; // swap masked and unmasked points in active dataset. }; };
Thanks, Sammi
Edited by - sammi.song on 08/08/2004 11:43:33 PM |
|
|