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.

 採用された回答

madhan ravi
madhan ravi 2019 年 7 月 13 日
Simpler without loop:
F(:) = {zeros(3,1)}

その他の回答 (1 件)

Image Analyst
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

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

リリース

R2019a

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by