How to add hours:minutes in Matlab?
Show older comments
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!
Accepted Answer
More Answers (1)
KSSV
on 28 Jan 2021
t='10:10';
[Y, M, D, H, MN, S] = datevec(t);
H*60+MN
1 Comment
Tahariet Sharon
on 28 Jan 2021
Categories
Find more on Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!