The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 mark nonselected rows
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 08/07/2004 :  08:04:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

sammi.song

China
46 Posts

Posted - 08/08/2004 :  11:30:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 08/09/2004 :  07:12:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Sammi, for your recomendations on the use of ii, further your marking/selecting procedure works beautifully!
Thanks again, julio
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000