MATLAB: Is it possible to get index of reshaped matrix

indexing

i have a matrix A of size 1*120 and reshaped it to matrix B of size 10*12….. is it possible to get the index values of where the value of A has gone to B in a matrix C of size 1*120….

Best Answer

The functions ind2sub and sub2ind, give you a more general way of doing it, which expands to more dimensions...