| Author |
Topic  |
|
|
Timmi_N
Germany
Posts |
Posted - 12/08/2004 : 08:33:49 AM
|
Origin Version (Select Help-->About Origin): 7.0 Operating System: Windows on i386
Dear Users of the Forum,
Im new here, and due to the lack of a subject, the website deleted by POSTDATA before sending it. So I write again, but shorter:
I draw a measurement graph, where I find two X-values for given Y-values. Now I need their "delta". I can draw vertical lines at given x-values, but I don't succeed in drawing them at the positions of my "found-out" x-values. Do I have to assign them somehow? How can I achieve to know these values, to subtract one of the other and to print them into a box into the graph?
I find out these values with this short script:
xaty01 = table( %c, xof(%c), 0.1 ); xaty09 = table( %c, xof(%c), 0.9 ); ixaty01 = xindex( xaty01, %c ); ixaty09 = xindex( xaty09, %c ); mks1 = ixaty01; mks2 = ixaty09;
I found it on the forum. But the following command doesn't work:
draw -lm -v ixaty01;
Many many thanks in advance,
Timmi_N
|
|
|
Timmi_N
Germany
Posts |
Posted - 12/09/2004 : 2:12:33 PM
|
O.K., I found out that
A=[value];
assigns a value and that
A=;
types it out.
But why can't I assign a "found out" value like this, subtract it and plot a line there?
|
 |
|
|
Mike Buess
USA
3037 Posts |
Posted - 12/09/2004 : 3:32:16 PM
|
Hi Timmi_N,
The draw -l -v command takes an x-value as an argument, not an index. Try this...
draw -l -v xaty01;
I wasn't aware of the -lm option but it seems to work too.
Mike Buess Origin WebRing Member |
 |
|
|
Timmi_N
Germany
Posts |
Posted - 12/13/2004 : 11:34:55 AM
|
Hello Mike!
Thanks a lot, your tip has exactly solved my problem. I didn' understand that the "i" in front of the variable name means the use of an "index", neither I found anything about in the help.
Bye,
Tim
|
 |
|
|
Mike Buess
USA
3037 Posts |
Posted - 12/13/2004 : 2:48:31 PM
|
Hi Tim,quote: I didn' understand that the "i" in front of the variable name means the use of an "index", neither I found anything about in the help.
It has nothing to do with the variable name. The xindex command returns a row number so you've defined ixaty01 as an index.
Mike Buess Origin WebRing Member |
 |
|
| |
Topic  |
|
|
|