shifting time in timetable

14 ビュー (過去 30 日間)
pooria mazaheri
pooria mazaheri 2018 年 10 月 25 日
コメント済み: dpb 2018 年 10 月 31 日
i want to shift this timetable for 1 day it means i want this, start from 03-jan-2018 regardless of hours

採用された回答

dpb
dpb 2018 年 10 月 25 日
Not sure what the "want" really means--the present time just a day later for each observation or what, precisely?
On the presumption that's the correct guess, then
TT.Time=TT.Time+1;
  2 件のコメント
dpb
dpb 2018 年 10 月 31 日
Good points, Peter.
I didn't have a klew as to what the OP was asking so was hoping for a response as to what the desire really was so I just took the shortcut to try to begin the conversation. Hadn't realized OP even came back until saw your comment just now...

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

その他の回答 (1 件)

jonas
jonas 2018 年 10 月 25 日
編集済み: jonas 2018 年 10 月 25 日
Simply shifting the time without affecting the data
TT.Time = dateshift(TT.Time,'start','day')
Changing the format (hiding the time of day)
TT.Time.Format = 'dd-MMM-yyyy'
Calculating a daily average
TT2 = retime(TT,'daily','mean')
These are the answers to three possible interpretations of your question. Perhaps you could describe your problem a bit better next time.

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by