how to convert cell in matrix
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 1*4 cell array and all members have the same size "{ [100*1] , [100*1], [100*1] ,[100*1]}" . I want to convert cell array in a way that get a matrix of (4*100). I mean each member of the cell array would be a column of my matrix.
0 commentaires
Réponse acceptée
OCDER
le 6 Sep 2018
A = repmat({rand(100, 1)}, 1, 4); %your 1x4 cell containin 100x1 matrix per each cell
B = [A{:}] %your 100x4 matrix
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!