How to insert a column of zero into a 3D matrix?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
parslee
am 30 Mär. 2022
Beantwortet: Simon Chan
am 30 Mär. 2022
A = rand(128,256,36);
B = zeros(128,1);
I would like to concatenate B and A so that C = cat(2,B,A(:,:,1) but for every A(:,:,1), A(:,:,2), ... A(:,:,3).
How can I do this, instead of doing it manually?
0 Kommentare
Akzeptierte Antwort
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!