フィルターのクリア

Convert Time series to minutes

4 ビュー (過去 30 日間)
amine&&
amine&& 2017 年 3 月 21 日
回答済み: Peter Perkins 2017 年 3 月 21 日
Hello. How I can convert data from a time series (timetable) to a second to the minute under matlab. Thank you in advance!

採用された回答

Peter Perkins
Peter Perkins 2017 年 3 月 21 日
Maybe what Steve suggested. Or maybe just change the display format of the time vector? Hard to tell what you're asking.
>> tt = timetable(seconds(0:60:240)',rand(5,1))
tt =
5×1 timetable
Time Var1
_______ _______
0 sec 0.81472
60 sec 0.90579
120 sec 0.12699
180 sec 0.91338
240 sec 0.63236
>> tt.Time.Format = 'm'
tt =
5×1 timetable
Time Var1
_____ _______
0 min 0.81472
1 min 0.90579
2 min 0.12699
3 min 0.91338
4 min 0.63236

その他の回答 (1 件)

Steven Lord
Steven Lord 2017 年 3 月 21 日
So you want to retime the timetable using 'minutely' as the newTimeStep?

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by