We have table,Why we use timetable?

What is the difficience between the table and timetable?
“timetable is a type of table that associates a time with each row. Like tables, timetables store column-oriented data variables that can have different data types and sizes as long as they have the same number of rows. In addition, timetables provide time-specific functions to align, combine, and perform calculations with timestamped data in one or more timetables.”-----------------I have a table that associates a time with each row. temp is table,The 4th column is the datetime Var(varname is ‘time’),so,I can run this code to find row that date is 2008-01-03
temp((temp{:,4}==datetime('2008-01-03')),:)
I can sort by time
sortrows(temp,'Time')
Is there anything that a timetalb can do, but table cannot? What job must be done using a timetabl instead of a table?
Almost all the functions that tables can use ,timetable can use too. Like:removevars vartype addprop………………

 採用された回答

Paul
Paul 2023 年 7 月 23 日

1 投票

It looks like timetables offer additional functionality helpful for dealing with time histories of data: Timetables

4 件のコメント

Steven Lord
Steven Lord 2023 年 7 月 24 日
That is correct. You can retime a timetable or synchronize two or more timetables, which you cannot do with tables.
Eric Sofen
Eric Sofen 2023 年 7 月 24 日
編集済み: Eric Sofen 2023 年 7 月 24 日
And you can subscript a timetable directly by time or use subscripting helpers like timerange to select rows between two times, rather than using logical indexing (rather complicated logical indexing in the case of timerange).
Some of the topics in the timetable doc section can give you a broader sense of timetable's unique capabilities and purpose:
Paul
Paul 2023 年 7 月 24 日
It would be helpful if the Descriptions section of doc page for timetable had a link to the Timetables doc (linked in your comment and my answer), instead of it being buried down in the Tips section.
fa wu
fa wu 2023 年 7 月 25 日
Thank you very much ,It is very helpful!

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

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2020a

質問済み:

2023 年 7 月 23 日

コメント済み:

2023 年 7 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by