how to create n*n by 1 natrix from n by n matrix

17 views (last 30 days)
Torkan on 11 Aug 2018
Commented: KSSV on 11 Aug 2018
I want to create 9 by 1 matrix using the 3 by 3 matrix. It means that the second column should be below the first column and then the third one below the second one. This should be generalized to n by n matrix. Would you please help me?
Then I have another matrix. The same size. I should do the same thing there and then create one 3*3 by 2 matrix which the first column is the 9 arrays of the first matrix and the second column is the 9 arrays of the second matrix.
KSSV on 11 Aug 2018
Read about reshape and MATLAB matrix indexing.

Sign in to comment.

Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!