how concatenate arraycell in this strange way

c = {1 4}
d = {3 6}
it's possibile to do it?
{1 3} {4 6}

1 件のコメント

Dyuman Joshi
Dyuman Joshi 2023 年 9 月 3 日
What exactly is supposed to be the output you want?
The above mentioned expression is not clear -
{1 3} {4 6}
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

 採用された回答

Matt J
Matt J 2023 年 9 月 3 日
編集済み: Matt J 2023 年 9 月 3 日

0 投票

c = {1 4};
d = {3 6};
num2cell( [cell2mat([c;d]')],2)'
ans = 1×2 cell array
{[1 3]} {[4 6]}

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2023 年 9 月 3 日

コメント済み:

2023 年 9 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by