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.

更多回答(1 个)

I don't know about null. How about nan?
for k = 1 : numel(F)
F(k) = {nan(3, 1)};
end

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品

版本

R2019a

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by