How to add hours:minutes in Matlab?
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (1)
KSSV
le 28 Jan 2021
t='10:10';
[Y, M, D, H, MN, S] = datevec(t);
H*60+MN
1 commentaire
Tahariet Sharon
le 28 Jan 2021
Catégories
En savoir plus sur Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!