Question

Develop a MATLAB program that determines the number of days until Christmas (December 25th) given any 3. date. The program as

0 0
Add a comment Improve this question Transcribed image text
Answer #1

close all ;
clear all ;
startDate = input('Enter Date ','s')
startDN = datenum(startDate, 'mmmm dd');

enddate = 'December 25';
enddateDN = datenum(enddate, 'mmmm dd');

DaysRemain = (enddateDN - startDN)

Your Code.. 1 close all; 2 clear all; 3 startDate input(Enter Date,s) 4 startDN datenum(startDate, mmmm dd); 6 enddate Dec

Your Code 1 close all; 2 clear all; 3 startDate input ( Enter Date , s) 4 startDN datenum(startDate, mmmm dd) 6 enddate D

Add a comment
Know the answer?
Add Answer to:
Develop a MATLAB program that determines the number of days until Christmas (December 25th) given any 3. date. The program asks the user to enter the date (month and date). The program works for j...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Evaluate the arical writ the response in which you state your agreement or disagreement with writer...

    Evaluate the arical writ the response in which you state your agreement or disagreement with writer up un these questions guidelines 1) can empathy lead us astrary? how 2) our heart will always go out to the baby in the well, its a measure of our humanity. but empathy will have to yield to reason if humanity is to have a future can empathy yield to reason? how? thank you The Baby in the Well: The Case against Empathy* -Paul...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT