How to collect an input from a user and validate it. Collecting the user's birthday month as a number. This is a first step to a MATLAB program to calculate how long until someone's next birthday using date functions.
Relevant full tutorials:
Full video tutorial for this program: • MATLAB: Calculate time to birthday/ev...
Using the input function: • MATLAB: Inputs and Outputs (fprintf) ...
Using while loops to validate/error check user inputs: • MATLAB: Coding while loops to validat...
#MATLAB #learntocode #input #while #functions #engineering #engineeringcourses