Filter löschen
Filter löschen

How to reshape a matrix?

1 Ansicht (letzte 30 Tage)
Ashraf Afana
Ashraf Afana am 27 Mär. 2013
Hi, I'm trying to reshape a matrix in a way that the number of rows are extended and repeated in relation to the last record. For example if I have a matrix of 4 columns and 2 rows. each column describe a variable and each row describe a record. The problem is the last variable is formed by a sub set of values, which means is not limited to one columns rather to several ones (e.g. [5:6:8:9:4]). How can I reshape the matrix in a way that all the records with one value are repeated and the records with different values are arranged in column way. so the final matrix will be of 4 columns and 8 rows. Regards,

Akzeptierte Antwort

Mahdi
Mahdi am 27 Mär. 2013
I would recommend looking at these two documentation:

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by