qickyly change 3D matrix to 2D matrix
Mostra commenti meno recenti
Hi, This might be such a silly question but could anyone please help? I get a 3D matrix A(n,m,k) so I want to take the value a(:,1)=A(1,1,:). But Matlab doesn't allow me to do that. Is using "for" loop the only way to do that?
Risposta accettata
Più risposte (1)
Rahul K
il 16 Feb 2017
For the example you gave, the following also works:
a=squeeze(A(1,1,:));
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!