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
 Increment in Col()

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
marasneo Posted - 04/30/2015 : 09:34:32 AM
How can I increment each column Col? I want to multiply each value in each column by some factor - a variable taken from C script.


for (int aa=start_column; aa<liczba_kolumn; aa++ ){
double ss=50;
string labtalk_wstawka_2;
labtalk_wstawka_2.Format("Col(aa)=Col(aa)*%f;", ss);
wksb.LT_execute(labtalk_wstawka_2);
}
1   L A T E S T    R E P L I E S    (Newest First)
ZanHUNG Posted - 05/03/2015 : 11:25:13 PM
doc -e D {script}: "If a worksheet is active, execute for all datasets (columns) in the active worksheet".

To multiply each value in each column of the active worksheet by some factor, say, 50, the LabTalk script is:

doc -e D {%C *= 50.0;};


See the following for details:

http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects

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