Matrix manipulation-changing number of rows & columns of a matrix & keeping all of the elements

7 views (last 30 days)
Yildirim Kocoglu
Yildirim Kocoglu on 2 Feb 2018
Commented: Greg on 2 Feb 2018
Hi, I'm trying to change this simple matrix below:
to look like
All the elements in A(3,4) exist in the new matrix A(6,2).
You can find the new row number (6) of the new matrix by using the formula below (the new matrix A(6,2) is 2 columns & stays that way):
This is not the real data but, the code for the simplified version will help a lot.
I have already tried to write a code for it using "for loop" but, it didn't work.
Any help is appreciated.
Thank you.

Answers (0)

Community Treasure Hunt

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

Start Hunting!