Question 1
I wrote a gui code that gives the following row which is then made to display on a uitable:
combt =
Columns 1 through 5
2000 2530.4 2671.4 2.3 2.6
This row will be automatically added to row 1 in the uitable:
In my example above, I would like this row to be added to row 2000 (depending on column 1 of my data).
Therefore if my row has a column_1 = 10
, I would like this row to appear at row 10 in the uitable and so on. I have been looking for this answer for over a year so your help will be much appreciated.
Question 2:
Say I have a table with the following numbers
combt =
Columns 1 through 5
1 2630.4 2671.4 5.3 2.6
2 2530.2 2673.4 2.2 6.6
10 2331.4 4671.2 4.3 2.7
11 2550.4 6671.4 2.1 2.8
How can rearrange them so that ,again, column 1 corresponds to the row number and the spaces are filled with zeros as such:
combt =
Columns 1 through 5
1 2630.4 2671.4 5.3 2.6
2 2530.2 2673.4 2.2 6.6
0 0 0 0 0 (This is row 3)
0 0 0 0 0 (This is row 4)
0 0 0 0 0 (This is row 5)
0 0 0 0 0 (This is row 6)
0 0 0 0 0 (This is row 7)
0 0 0 0 0 (This is row 8)
0 0 0 0 0 (This is row 9)
10 2331.4 4671.2 4.3 2.7
11 2550.4 6671.4 2.1 2.8