concatenate cells
12 ビュー (過去 30 日間)
古いコメントを表示
for k=1:8
cd(phonemes{k});
datat{k}=dir('*.pcm');
cd ..
x=cat(1,data{k})
end
hey guys,i need some help here...well i have 8 folders each one contains 60.pcm files, i want to concatanate all in one i.e. i want to have a cell with 8x60=480 .pcm files??!! any help please????
回答 (2 件)
Jan
2012 年 3 月 2 日
x=cat(1,data{k})
This concatenates data{k} with nothing. I suggest to concatenate the data after the loop:
for k=1:8
cd(phonemes{k});
datat{k}=dir('*.pcm');
cd ..
end
x = cat(1, data{:});
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!