Delete a dimension from a 3d array to convert into a 2d array (Matrix)
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akaash Dragon
am 5 Dez. 2019
Beantwortet: Guillaume
am 5 Dez. 2019
I have an array of the following dimensions 1x3500x250. I want to delete this one extra dimension and convert it into 3500x250 2d array matrix in Matlab. How do I do it?
0 Kommentare
Akzeptierte Antwort
Guillaume
am 5 Dez. 2019
squeeze(yourarray)
or
permute(yourarray, [2 3 1])
squeeze is simpler and will get rid of all singleton dimensions.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!