Filter löschen
Filter löschen

How can I change the order of an N-dimensional array?

1 Ansicht (letzte 30 Tage)
도현 김
도현 김 am 15 Nov. 2021
Kommentiert: 도현 김 am 15 Nov. 2021
I have an array of size (300*1*6*1000).
But I want to change the order of this array as below.
(300*1*6*1000) >> (6*300*1*1000)
How can I change it, sir?

Akzeptierte Antwort

Jan
Jan am 15 Nov. 2021
X = permute(X, [3,1,2,4]);

Weitere Antworten (0)

Kategorien

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

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by