How do I write a function that inputs seconds and outputs the number of days, hours, and mins?
Mostrar comentarios más antiguos
I'm confused in writing a function that can take seconds as an input and provides an output in the number of days, hours, minutes, and seconds, if applicable.
2 comentarios
Walter Roberson
el 28 de Sept. de 2021
Seconds relative to what base time?
Walter Roberson
el 28 de Sept. de 2021
See functions such as seconds() -- and mod()
Respuestas (1)
1 comentario
Walter Roberson
el 1 de Oct. de 2021
Not exactly, as it does not return these as numeric as required for the homework
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!