フィルターのクリア

cell array contain zeros matrix

11 ビュー (過去 30 日間)
Pradya Panyainkaew
Pradya Panyainkaew 2017 年 12 月 20 日
コメント済み: Michal Dudek 2020 年 2 月 27 日
How to create cell array size 1X100 which contain zeros matrix size 366X28 in each cell

採用された回答

Harish Ramachandran
Harish Ramachandran 2017 年 12 月 20 日
for i=1:100
a{i} = zeros(366,28);
end
Loop through each cell array block and insert a zeros matrix inside.
  3 件のコメント
SM
SM 2020 年 2 月 11 日
Is it posible to solve the problem without using loop?
Michal Dudek
Michal Dudek 2020 年 2 月 27 日
Yes, it is possible. Use this code:
a = mat2cell(repmat(zeros(366,28),1,100),366,repmat(28,1,100));

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by