フィルターのクリア

Insert zero columns in matrices inside a cell array

3 ビュー (過去 30 日間)
Melody Lyu
Melody Lyu 2020 年 2 月 11 日
コメント済み: Melody Lyu 2020 年 2 月 11 日
I have matrices inside the 23x1 cell that looks like this:
30x28 double
30x28 double
30x30 double
30x29 double
30x30 double
...
How do I add columns with zero at the end of the matrices so make all all of them 30x30?

採用された回答

Stephen23
Stephen23 2020 年 2 月 11 日
Where C is your cell array:
for k = 1:numel(C)
C{k}(:,end+1:30) = 0;
end
  1 件のコメント
Melody Lyu
Melody Lyu 2020 年 2 月 11 日
Thank you soo much!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by