cell array contain zeros matrix
7 次查看(过去 30 天)
显示 更早的评论
How to create cell array size 1X100 which contain zeros matrix size 366X28 in each cell
0 个评论
采纳的回答
Harish Ramachandran
2017-12-20
for i=1:100
a{i} = zeros(366,28);
end
Loop through each cell array block and insert a zeros matrix inside.
3 个评论
Michal Dudek
2020-2-27
Yes, it is possible. Use this code:
a = mat2cell(repmat(zeros(366,28),1,100),366,repmat(28,1,100));
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!