Hi,
I have a variable called SIGNAL of size 6x1. It has 6 cells with each cell of size 1x100. How do I split the cells into arrays ?
(Every cell in SIGNAL contains 100 timetables) . Thank you

3 件のコメント

Stephen23
Stephen23 2021 年 7 月 14 日
You can easily flatten that cell array:
out = vertcat(SIGNAL{:});
Where out will be a 6x100 cell array containing your timetables. You can trivially access the timetables using indexing:
Arvind Pugalur Sridharan
Arvind Pugalur Sridharan 2021 年 7 月 14 日
Thank you Stephen !! It worked.
Peter Perkins
Peter Perkins 2021 年 7 月 27 日
The fact that ll your timetables in SIGNAL{1,1} makes me suspect that you also want to horzcat across rows of SIGNAL. Something like
for i = 1:6
S2{i} = [SIGNAL{1,:}];
end
Or, you may need to use synchronize instead of horzcat.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 7 月 14 日

コメント済み:

2021 年 7 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by