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
 Origin Forum
 Working with Script Window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shafei

USA
49 Posts

Posted - 11/03/2011 :  1:46:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver: 8.01
Operating System: 7

I am trying to learn how to work with script window. I have f(A,B,C,D), and would like to plot f vs. A and B while C and D are constants. My adviser has provided me with this commands:

matrix -ps X 0 1;
matrix -ps Y 1 5;
matrix -v f(y,x,1, 2);

or in another case,

matrix -ps X 0 1;
matrix -ps Y 1.17 1.22;
matrix -v f(y,x,1,.6);

Can you please tell me how they work? How exactly X and Y are related to x and y? Where can I find a link to learn more about this kind of programming. Apparently it is very useful and saves time!

Hideo Fujii

USA
1582 Posts

Posted - 11/03/2011 :  2:53:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi shafei,

These are "matrix" LabTalk command, and can be found in the LabTalk help in Origin; Or, you can find the same information in the following LabTalk Wiki documents:

http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:Matrix_%28command%29

--Hideo Fujii
OriginLab
Go to Top of Page

shafei

USA
49 Posts

Posted - 11/04/2011 :  02:02:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I read the document but still have some questions. I understand that
matrix -ps X 0 1;
matrix -ps Y 0 1;
means that X and Y are the variables and their values are in the range of 0 and 1. But what are x and y values or i and j values. Apparently, as document says, are "the row and column number value for any particular cell", but it is very confusing! What is the value in i and j cell and how is it determined? How X and Y are related to x and y or i and j. Can you please clarify?
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/04/2011 :  3:02:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

In this command with -ps option, "X" and "Y" are not variables to store the values, but a mere indication for the mapping target to the coordinate. The mapping is equivalent to the settings in Matrix Dimension and Labels dialog (XY Mapping tab) - "Matrix: Set Dimension/Labels" menu. Try to press F1 on this dialog.)

--Hideo Fujii
OriginLab
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