Adding time (time stamp) to observations

2 ビュー (過去 30 日間)
desert_scientist90
desert_scientist90 2020 年 8 月 10 日
編集済み: VBBV 2020 年 8 月 10 日
Hi I have a quesion regarding the creation of a time variable with increments of every 10 seconds ( I am trying to do a time series graph). I have tried with datetime and duration with no luck. The time of the sampling shoulf cover in theory the 161,052 observations. Any help will be appreciated.
D = duration(4,00:00,10) %% I tried this trying to get the increments of a duration period of 4 hours in increments of 10 seconds

採用された回答

VBBV
VBBV 2020 年 8 月 10 日
編集済み: VBBV 2020 年 8 月 10 日
Try
A = duration(0,00,00);
B = duration(4,00,00);
C = A:seconds(10):B
  1 件のコメント
desert_scientist90
desert_scientist90 2020 年 8 月 10 日
Thanks it works!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by