MATLAB Answers

0

I need to create a cell array initializing each element in it to 3*1 null matrix.

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

Sign in to comment.

Tags

Products


Release

R2019a

2 Answers

Answer by madhan ravi
on 13 Jul 2019
 Accepted Answer

Simpler without loop:
F(:) = {zeros(3,1)}

Answer by Image Analyst
on 13 Jul 2019
Edited by 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

Sign in to comment.