How to split table in new tables

2 ビュー (過去 30 日間)
Dion Theunissen
Dion Theunissen 2021 年 7 月 1 日
回答済み: KSSV 2021 年 7 月 1 日
Hi,
I have a table like this:
I want to splits this table in new tables based on the triggertype. I want to select the rows from ignition on till ignition off. From those rows i want to save a new table.
So in the screenshot above i want to make a table from row 6 till row 11, row 16 till the next row where ignition off is available.
Can anyone help me with this?
Dion

採用された回答

KSSV
KSSV 2021 年 7 月 1 日
Let T be your table.
idx0 = find(strcmp(T.(2),'IGNITION_ON')) ;
idx1 = find(strcmp(T.(2),'IGNITION_OFF')) ;
T1 = T(idx0(1):idx1(1),:)

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by