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?

답변 (1개)

dpb
dpb 2015년 4월 9일

0 개 추천

Start with
help timefun
there should be several clues there that will give you ideas on how one might proceed...

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2015년 4월 9일

답변:

dpb
2015년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by