Changing dimensions of a cell array

15 ビュー (過去 30 日間)
Chris Dan
Chris Dan 2020 年 2 月 2 日
コメント済み: Chris Dan 2020 年 2 月 3 日
Hey guys,
I have a cell array called "MD", attaching picture
pic9.JPG
it is a 1x2 cell, I want to make it 2x1 cell array, because then I would be able to convert it into a struct using this code
fields = {'model_data'};
Body_Data =cell2struct(MD,fields,2);
Does anybody know how to change the dimensions of the cell array?

採用された回答

Stijn Haenen
Stijn Haenen 2020 年 2 月 2 日
You can do this with: '
field=field';
  1 件のコメント
Chris Dan
Chris Dan 2020 年 2 月 3 日
Stijn Haenen
Wrong chocie of variable name, but I got it (Y)

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by