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
 Problem with mathtool

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
SvenP Posted - 08/18/2011 : 04:00:31 AM
Origin Ver. 8.5 and Service Release (Select Help-->About Origin):
Operating System: Win7 x64

Hello.

I have a problem with the following script line:

mathtool iy1:=(%M_H1,%M_G1) iy2:=(%N_D,%N_Result) operator:=sub oy:=%N_Sub;

It was working well with Origin 8.1. Unfortunately I do not know how to create as output a x- and y-column. But Origin stored the y-values in the Sub-column and added the column addition information
with x-start and increment. So I was able to plot the curve.

But know we switched to Origin 8.5 and the column additional information are not created.

How can I solve that problem. Thanks a lot in advance.

Sven
2   L A T E S T    R E P L I E S    (Newest First)
SvenP Posted - 08/19/2011 : 4:52:51 PM
Thanks for your reply Greg. But I think you dit not understand my problem.

I create column Sub with this line: work -c Sub;
then this line will be executed
mathtool iy1:=(%M_H1,%M_G1b) iy2:=(%N_D,%N_Result) operator:=sub oy:=%N_Sub;

Both, Origin 8.1 and 8.5, write the y-values to column Sub, but there is no column with the x-values.
BUT Origin 8.1 creates Column additional information (marked with the "i" with yellow background). And so I am able to plot the difference.
AND Origin 8.5 does not create these Column additional information. And now I do not have any x-values and can not plot the difference.

That is my problem.
greg Posted - 08/19/2011 : 11:32:51 AM
In fact, 8.1 did not CREATE the Sub column either, but both 8.1 and 8.51 will write to the Sub column if it exists already.

You can modify the code to create the sub column if it does not exist already with:

mathtool iy1:=(%M_H1,%M_G1) iy2:=(%N_D,%N_Result) operator:=sub oy:=[%N]1!Sub;

The last argument assumes Sub should be in sheet 1.

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