Origin Version (Select Help-->About Origin): 7.5 Operating System: Win2000
I have a worksheet called "Winkel" and need to set the values for a number of columns. Here is part of my Labtalk-script. All columns exist.
gradschritt=20; zahlgrad=360/$(gradschritt); qq=($(zahlgrad)*2)+3; tt=0; for (ii=2;ii<=$(qq);ii=ii+2){ Winkel!wks.col$(ii).label$=x(cos) $(tt)°; // Label columns Winkel!wks.col$(ii)=col(a)*cos($(tt)); // This doesn´t work! (1) tt=$(tt)+$(gradschritt); };
In line (1) I would like to do the labtalk equivalent of "set column values", which is, calculate the values for the ii-th column by doing some math with cosine and column(a). I also tried the method Winkel_wks.col$(ii)=col(a)*cos(20); but it doesn´t work either. Just using col(b) = col(a)*cos(20) works fine but I´d like to do it in the for-loop.