cell array contain zeros matrix
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pradya Panyainkaew
am 20 Dez. 2017
Kommentiert: Michal Dudek
am 27 Feb. 2020
How to create cell array size 1X100 which contain zeros matrix size 366X28 in each cell
0 Kommentare
Akzeptierte Antwort
Harish Ramachandran
am 20 Dez. 2017
for i=1:100
a{i} = zeros(366,28);
end
Loop through each cell array block and insert a zeros matrix inside.
3 Kommentare
Michal Dudek
am 27 Feb. 2020
Yes, it is possible. Use this code:
a = mat2cell(repmat(zeros(366,28),1,100),366,repmat(28,1,100));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!