Sorry for the delay in postings, but many of us are in the state of transition, whether its school, weddings or work. As a simple tutorial to get back into the swing of things, let’s look at several different ways of requesting user input in your MATLAB programs. While you will often need to display information to the user, you will have to request data from them as well. There are several options available to you, and we will run through many of them here. The most basic of which is the command line based “input”.
Saving data to a text file can be a useful way to access results of your Matlab code at a later time. One easy way to do so is via the fprintf command. Let’s run through some examples to get you familiar with the concepts.