05-20-2012 07:20 PM
why aren't you just doing this:
05-21-2012 03:33 AM - edited 05-21-2012 03:42 AM
Hi guys thank for all your help!!! I had successfully created my 2D array but now I have a problem how do I combine the 2D array with another column of data(maximum) which I acquire from some calculations?
here is what I am trying to get:
0 0.9236 0.2132
5 1.2653 0.1565
10 1.1940 0.9875
15 1.2691 0.9874
20 0.9987 0.6663
25 1.4567 0.2945
30 1.9746 0.1236
35 1.3445 0.2568
40 1.9953 0.1459
. . .
. . .
. . .
255 1.4372 0.1278
I need them to be side by side. Because I need to get the highest maximum value and return the correspond row then use the value inside the row for other calculation.
currently I have a 2D array:
0 0.9236
5 1.2653
10 1.1940
15 1.2691
20 0.9987
25 1.4567
30 1.9746
35 1.3445
40 1.9953
. .
. .
. .
255 1.4372
and a 1D array:
0.2132
0.1565
0.9875
0.9874
0.6663
0.2945
0.1236
0.2568
0.1459
.
.
.
0.1278
How can I do this?
05-21-2012 03:46 AM
The same way just build the 2D and 1D array.
05-21-2012 04:22 AM
So I combine and transpose array?
05-21-2012 04:23 AM
Yes if required you need to transpose the array.