to save different dimension cell to double
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
each cell have different number entries..
I wish to write all entries in all cells one after other in a double format///
any direction in this regard will be of great help
3 commentaires
Réponse acceptée
KSSV
le 1 Déc 2016
C_cell = cell(2) ;
for i =1:2
for j = 1:2
C_cell{i,j} = {rand(3)} ;
end
end
C_double = cellfun(@cell2mat,C_cell,'un',0) ;
C_cell
C_double
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Identification 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!