cell array contain zeros matrix
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Pradya Panyainkaew
il 20 Dic 2017
Commentato: Michal Dudek
il 27 Feb 2020
How to create cell array size 1X100 which contain zeros matrix size 366X28 in each cell
0 Commenti
Risposta accettata
Harish Ramachandran
il 20 Dic 2017
for i=1:100
a{i} = zeros(366,28);
end
Loop through each cell array block and insert a zeros matrix inside.
3 Commenti
Michal Dudek
il 27 Feb 2020
Yes, it is possible. Use this code:
a = mat2cell(repmat(zeros(366,28),1,100),366,repmat(28,1,100));
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!