Hello,
basically i have a 2D matrix 'a'. It contains both data i want to use and data i want to ignore.
e.g.
'a' matrix:
1.937145 -0.500000 -1.333333 0.000000 -0.103812 -1.000000 0.000000
-0.500000 1.000000 0.000000 0.000000 0.000000 -3.000000 0.000000
-1.333333 0.000000 1.333333 0.000000 0.000000 -2.000000 0.000000
0.000000 0.000000 0.000000 0.535115 -0.285115 -3.000000 0.000000
-0.103812 0.000000 0.000000 -0.285115 0.388927 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
The data i want to extract and save into another array is surrounded by extra rows and columns full of zeros. I want to save the data (minus the zeros) into another array, lets call that 'A'.
after much head scratching i cannot get this to work. can anyone do this for me?
thank you, James
basically i have a 2D matrix 'a'. It contains both data i want to use and data i want to ignore.
e.g.
'a' matrix:
1.937145 -0.500000 -1.333333 0.000000 -0.103812 -1.000000 0.000000
-0.500000 1.000000 0.000000 0.000000 0.000000 -3.000000 0.000000
-1.333333 0.000000 1.333333 0.000000 0.000000 -2.000000 0.000000
0.000000 0.000000 0.000000 0.535115 -0.285115 -3.000000 0.000000
-0.103812 0.000000 0.000000 -0.285115 0.388927 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
The data i want to extract and save into another array is surrounded by extra rows and columns full of zeros. I want to save the data (minus the zeros) into another array, lets call that 'A'.
after much head scratching i cannot get this to work. can anyone do this for me?
thank you, James
Comment