Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
karvek
Posted - 10/17/2019 : 11:33:37 AM Hi,
I think I am trying to do something really stupid but I cannot manage somehow.
I have two columns and I want to create a third column formed by certain specific ranges of the previous columns.
If I put range r1 = A[1:10] range r2 = B[11:20] as before formula script I can assign the range values using r1 or r2 but I don't understand which operation should I use to append r2 to r1.
Writing r1+r2 makes the sum, but I actually want a simple column formed by two different column ranges...
Now assume I would like to create a column that is formed by a certain range (like r1) and another range that is a single value of colB repeated a fixed number of times.
I am trying to use r2 = cell(11,2); range r3 = C; for (i=1; i<10; i++) {copy -a r2 r3;};
but it does not really work. Looking forward for your suggestion!
EDIT: I solved it using the repeat function, the problem is the way Origin is handling the "empty" (NAN) cells and this conflicts with range. I was unable to find a command to fully delete this NAN values so I had to do this manually, but now it works.
yuki_wu
Posted - 10/17/2019 : 10:21:48 PM Hi,
You can use copy command:
range r1 = A[1:10];
range r2 = B[11:20];
range r3 = C;
r3 = r1;
copy -a r2 r3;