How to add hours:minutes in Matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tahariet Sharon
am 28 Jan. 2021
Kommentiert: Tahariet Sharon
am 28 Jan. 2021
Let's say I have hours:minute data in format HH:MM, and want to do statistics with it. I want to have the data in minutes for instance to be able to do t-tests. How to go about this in Matlab? Thanks!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Jan. 2021
t='10:10';
minutes(duration(t, 'inputformat', 'hh:mm'))
3 Kommentare
Walter Roberson
am 28 Jan. 2021
If it is a cell array of character vectors, use the call I provided.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!