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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 mark nonselected rows

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000