MATLAB Help: Cell Arrays Thank you for the help! :) 2. (30 pts) Write a program
ID: 3699567 • Letter: M
Question
MATLAB Help: Cell Arrays
Thank you for the help! :)
Explanation / Answer
Solution:
code:
monthValue=input('Enter a monthValue of 2016: ');
m_string={'January','February','March','April','May','June','July','Aug','September','October','November','December'};
while 1
if (monthValue<0) || (monthValue >=12)
fprintf('Try again. ');
monthValue=input('Enter a whole number between 1 to 12: ');
else
fprintf('They are %d in %s , 2016 ', eomday(2016, monthValue) , m_string(monthValue));
break;
end
end?
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.