hi, Suppose I have a matrix A=[1 2 3 4;5 6 7 8;9 10 11 12;13 14 15 16]; I want to transfer it into a linear matrix as A=[1 2 5 6 3 4 7 8 9 10 13 14 11 12 15 16]; (i.e. mortan scan order in image processing). Can you help me. All my work will start after this only. I would be very greatful to you
MATLAB: How to do linear indexing in matlab
i am in urgent need
Related Question
- How to convert from a matrix to a cell
- Shift rows by different amounts
- How to reshape a 2D to 3D matrix without using loops (reshape) and keeping a particular order of the elements// Wrong arragement of elemts after using “reshape”
- Matrix with values dependent on row and column.
- How to do the following in a simpler and smarter way
- How to rearrange data in matrix rows
- Replace one matrix with the positon indicated in another matrix
Best Answer