How to add hours:minutes in Matlab?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tahariet Sharon
le 28 Jan 2021
Commenté : Tahariet Sharon
le 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 commentaires
Réponse acceptée
Walter Roberson
le 28 Jan 2021
t='10:10';
minutes(duration(t, 'inputformat', 'hh:mm'))
3 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!