I WANT THIS:

1 件のコメント

Stephen23
Stephen23 2024 年 6 月 24 日
移動済み: Stephen23 2024 年 6 月 24 日
A = {{1,2},{3,4}}
A = 1x2 cell array
{1x2 cell} {1x2 cell}
B = vertcat(A{:})
B = 2x2 cell array
{[1]} {[2]} {[3]} {[4]}

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

 採用された回答

Matt J
Matt J 2023 年 12 月 21 日
編集済み: Matt J 2023 年 12 月 21 日

0 投票

Perhaps this is what you want,
W1={{1,2},{3,4}}
W1 = 1×2 cell array
{1×2 cell} {1×2 cell}
W2=reshape([W1{:}],2,[])'
W2 = 2×2 cell array
{[1]} {[2]} {[3]} {[4]}

その他の回答 (0 件)

カテゴリ

質問済み:

2023 年 12 月 21 日

移動済み:

2024 年 6 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by