Creating function to calculate elapsed days?? help!

Im asked to create a given function where the output is number of days and input is days, months and years so im asked to calculate the elapsed days. for example is the input is 10,3,2014 meaning that the output should be 31+28+10.
But the problem is idk where to start using loops?? for loops?

Respuestas (1)

dpb
dpb el 9 de Abr. de 2015
Start with
help timefun
there should be several clues there that will give you ideas on how one might proceed...

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Abr. de 2015

Respondida:

dpb
el 9 de Abr. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by