フィルターのクリア

How can I retime my timetable with a 10days timestep?

2 ビュー (過去 30 日間)
Hamed Hedayatnia
Hamed Hedayatnia 2020 年 5 月 1 日
コメント済み: Peter Perkins 2020 年 5 月 5 日
Hi guys,
I need to retime my hourly timetable to an average 10days time step. Then apply an index to them.
I know that predefine timesteps like hourly or monthly exist in m,atlab but 10day time interval??
Thanks in advance

採用された回答

dpb
dpb 2020 年 5 月 1 日
Read the documentation...
TT2 = retime(TT1,'regular',method,'TimeStep',dt) calculates regularly spaced row times using the time step dt. The dt input argument is a scalar duration or calendar duration, specifying a time step of any size. The row times of TT2 span the range of row times of TT1.
Use this syntax when the time step is not one of the predefined time steps you can specify as a character vector or string.
  5 件のコメント
dpb
dpb 2020 年 5 月 5 日
Hmmmm, Peter. I can't find what I had tried in command history now to see what I did wrong to draw the conclusion couldn't get there from here...somehow I had convinced myself something wasn't right but can't reproduce what that was at the moment.
Thanks for straightening out...
Peter Perkins
Peter Perkins 2020 年 5 月 5 日
A rare misstep indeed!

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

その他の回答 (1 件)

Steven Lord
Steven Lord 2020 年 5 月 1 日
Pass a datetime vector as the newTimes input to retime as shown in the Interpolate Timetable Data to Time Vector example on the documentation page.

カテゴリ

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

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by