Filter löschen
Filter löschen

How can I stack multiple Matrices in 1 2D matrix?

1 Ansicht (letzte 30 Tage)
Robert
Robert am 12 Jan. 2016
Beantwortet: the cyclist am 12 Jan. 2016
I have a 3D Matrix (96,35,43)
I want to change it to (3360,43) so that each 35x43 matrix is below the previous
How can I do this?

Antworten (1)

the cyclist
the cyclist am 12 Jan. 2016
% Your original data:
x = rand(96,35,43);
% Reshaped as you want
xr = reshape(permute(x,[1 3 2]),3360,43);

Kategorien

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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by