フィルターのクリア

display cell array vertically

14 ビュー (過去 30 日間)
Luca Re
Luca Re 2023 年 12 月 21 日
移動済み: Stephen23 2024 年 6 月 24 日 4:29
I WANT THIS:
  1 件のコメント
Stephen23
Stephen23 2024 年 6 月 24 日 4:23
移動済み: Stephen23 2024 年 6 月 24 日 4:29
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 日
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 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by