I need to create a cell array initializing each element in it to 3*1 null matrix.
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2019-7-13
编辑:Image Analyst
2019-7-13
I don't know about null. How about nan?
for k = 1 : numel(F)
F(k) = {nan(3, 1)};
end
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!