Reading data from cell array
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahmad Hasnain
le 24 Avr 2019
Commenté : Ahmad Hasnain
le 24 Avr 2019
I have a cell array that contains all the data. A{1,1}, A{2,1},...A{37,1}.
Now, I want to extract the first row from A{1,1}, A{2,1},...A{37,1} and then combine all the 37 rows in one mat file. How can I do that?
2 commentaires
Réponse acceptée
madhan ravi
le 24 Avr 2019
Modifié(e) : madhan ravi
le 24 Avr 2019
C = cell2mat(cellfun(@(x) x(1,:), A, 'un',0));
save mymat.mat C
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Cell 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!