Saving a row of a 2D matrix in a cell of 1D matrix

Hello everyone! I have this problem here:

Let's say that I have this matrix A :

-3 0 1
1 2 0
0 1 0

And i want to create an other matrix B[3] with:
B[0]:contains whole first row of A ,A[0,0] to A[0,2]
B[1]:contains whole second row of A, A[1,0] to A[1,2]
and so on.

Is there any possible way to do this? Thank you :)




closed account (E3h7X9L8)
it is possible only if you make them whole numbers like - 3 0 1 would be -301 in B[0] and so on, either way is not possible, and i am not reccomending you to this
Topic archived. No new replies allowed.