split the 132x10 cells into 1x10 arrays

2 ビュー (過去 30 日間)
Siti Suhaila
Siti Suhaila 2017 年 8 月 8 日
コメント済み: Siti Suhaila 2017 年 8 月 8 日
Hello everyone, I need to seek your guidance on how to split 132x10 cells into 1x10 arrays
This is important because in the next steps I need to compute the number of occurrences for each arrays.Thanks in advanced.
  1 件のコメント
per isakson
per isakson 2017 年 8 月 8 日
Use a loop!

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

採用された回答

KSSV
KSSV 2017 年 8 月 8 日
nx = 1320 ; ny = 10 ;
%%Make a random data
A = cell(nx,ny) ;
for i = 1:nx
for j = 1:ny
A{i,j} = rand ;
end
end
%%split into 1x10 cell arrays
iwant = cell(nx,1) ;
for i = 1:nx
iwant{i,:} = [A{i,:}] ;
end
  1 件のコメント
Siti Suhaila
Siti Suhaila 2017 年 8 月 8 日
TQ very much......

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by