I need to create a cell array initializing each element in it to 3*1 null matrix.
2 views (last 30 days)
Show older comments
hrushikesh kyathari
on 13 Jul 2019
Commented: hrushikesh kyathari
on 14 Jul 2019
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 Comments
Accepted Answer
More Answers (1)
Image Analyst
on 13 Jul 2019
Edited: Image Analyst
on 13 Jul 2019
I don't know about null. How about nan?
for k = 1 : numel(F)
F(k) = {nan(3, 1)};
end
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!