How to merge cells with different sizes

1 回表示 (過去 30 日間)
Isma_gp
Isma_gp 2016 年 9 月 9 日
回答済み: KSSV 2016 年 9 月 9 日
Hi,
I have a 4x20 cell. Each of the 4 rows have 20 cells of the same dimension, however varying dimensions for each row i.e: [1x654000 1x654000 ......1x654000; 1x600000 1x600000 ......1x600000; 1x630000 1x630000.......1x630000; 1x660000 1x660000.......1x660000]
I would like to end up with a 4x1cell as follows: [20x654000; 20x600000; 20x630000; 20x660000]
Thanks

回答 (1 件)

KSSV
KSSV 2016 年 9 月 9 日
k{1} = rand(1,20) ;
l{1} = rand(1,30) ;
m = [k{1} l{1}] ;

カテゴリ

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