Extracting data from array
1 回表示 (過去 30 日間)
古いコメントを表示
Vinay Srinivasan
2020 年 1 月 3 日
コメント済み: Vinay Srinivasan
2020 年 1 月 3 日
Hello all,
I have a matlab data file called 'Event '. It is a collection of 100 events .In each event there are multiple event(lets assume 10 sub events). I want to extract 5th event from all the 100 events . How can I write the code ?
2 件のコメント
採用された回答
KALYAN ACHARJYA
2020 年 1 月 3 日
編集済み: KALYAN ACHARJYA
2020 年 1 月 3 日
If the event data is an array, then
Event=[100 data number];
%I want to extract 5th event
data=Event(5)
If the event data each element itself as an array, then use cell array
Event={...100 data number};
%I want to extract 5th event
data=Event{5}
Each car event has many data like car type,number of passenger,etc
Preferbly cell array, which can hold any types of data, if its only series of numeric then just array.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!