I need to create a cell array initializing each element in it to 3*1 null matrix.
Afficher commentaires plus anciens
I need to create a cell array initializing each element in it to 3*1 null matrix. How to proceed?
F=cell(a,2*n); is my cell and a,n are integers.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 13 Juil 2019
Modifié(e) : Image Analyst
le 13 Juil 2019
I don't know about null. How about nan?
for k = 1 : numel(F)
F(k) = {nan(3, 1)};
end
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!