extract start and end of a timerange
11 ビュー (過去 30 日間)
古いコメントを表示
Working with timerange objects is great! One can keep a table in one piece and operate on subscripts of that table with a set of timeranges.
However ... part of that workflow is to glue two adjacent timeranges together, which means extracting the start/end datetimes of a timerange, or implementing operations such as:
TR_AB = timerange(TR_A, TR_B); // which would take start of A, end of B and generate the AB timerange.
How can one achieve this?
Thanks
0 件のコメント
採用された回答
Peter Perkins
2018 年 3 月 15 日
Andrei, you can't currently do that. You'd have to keep around the original endpoint values and create a new timerange.
1 件のコメント
Bela Burkert
2024 年 6 月 21 日
編集済み: Bela Burkert
2024 年 10 月 1 日
You can call
struct(timerange)
to get begin and end of that intervall with which you can generate new timeranges.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!