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
 Using column parameters to set fitting parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mblodgett

USA
1 Posts

Posted - 04/23/2013 :  09:36:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a custom function that contains a dataset-specific constant as one of it's parameters. It would be very useful if it could calculate that constant from the value of the Parameters header row.

Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: Windows 7

Drbobshepherd

USA
Posts

Posted - 04/23/2013 :  10:33:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Data associated with with a dataset is called metadata. You may like to read up on accessing metadata in the Help files.

Meanwhile, accessing the value of a header cell is similar to reading any cell in a dataset. For example, to assign the value in (Column 2, Row 3) to a variable, execute the following command:

double myvariable = col(2)[3];

To access a header value, use the header-row code (Look up "Column Label Row Characters" in Help Files) instead of row number within the square brackets. Note that headers are strings so don't forget to convert the value to a numeric. For example:

double par1 = %(col(2)[p1]$); // Get value from first parameter row.

DrBob


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