In Matlab I have this matrix:
Grid with dimensions [x,y]
I’ve reshaped it to a single row matrix
Row with dimensions [1,x*y].
How do i know where to find coordinate Grid(x,y) in matrix Row(1,?), and vice versa? Is there a function for this in Matlab?
The functions
sub2indandind2subshould be what you are looking for.