merge cell data in cell

1 回表示 (過去 30 日間)
NA
NA 2019 年 3 月 7 日
コメント済み: madhan ravi 2019 年 3 月 7 日
A={[69,19,21,22,23],[69,70,75]};
B={[19,34,37,15,33,35,36],[19,20,21,22,23,5,8,11,13,15,17]};
C={[37,38,65,40,42,49,66],[5,11,3,12],[1,2,3,12]};
result={[69,19,21,22,23],[69,70,75],[19,34,37,15,33,35,36],[19,20,21,22,23,5,8,11,13,15,17],[37,38,65,40,42,49,66],[5,11,3,12],[1,2,3,12]}
I used this
result = cellfun(@(m,v,u)vertcat(m,v,u),A,B,C, 'UniformOutput',false);
and have this error
Error using cellfun
All of the input arguments must be of the same size and shape.
Previous inputs had size 2 in dimension 2. Input #4 has size 3

採用された回答

madhan ravi
madhan ravi 2019 年 3 月 7 日
[A,B,C]

その他の回答 (1 件)

KSSV
KSSV 2019 年 3 月 7 日
result = [A ,B ,C] ;
  1 件のコメント
madhan ravi
madhan ravi 2019 年 3 月 7 日
It's exactly the same copy which was posted earlier.

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

カテゴリ

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