Assignment:
Write a function that computes the mean, median, mode, and standard deviation of a list of numbers. The function should take one variable as an input argument (arg) and it must be a string. There will be two cases. 

Case 1: arg is '' (the empty string)
Your function should ask the user to type in the list of numbers one at a time. Use the INPUT command to ask them for a number and storing the result. Keep asking them for input until they don't enter one (if you press enter at an input prompt without typing anything the value stored will either be an empty string or an empty array, depending on what form of the input command you use). Then, print out the statistics to the screen, using the SPRINTF command, so that each statistic is presented on one line with a description of what it is. A sample of what a run of the program in this case would look like:

Enter a number: 5
Enter a number: 6
Enter a number: 5
Enter a number: 7
Enter a number:
The mean is 5.7500
The median is 5.5000
The mode is 5
The standard deviation is 0.9574

Case 2: arg is a non-empty string
This will be very similar to Case 1, except that you will be doing your input and output to and from a file. The input arg will be the filename of a file containing a long list of numbers (one on each line). You need to read in all the numbers from the file and compute the same statistics as in Case 1. You will report them just as in Case 1, but rather than writing to the screen, you will write them to a file. This file should be named the same as the input file with the word 'stats' prepended to it (so if the input file was 'numbers.txt' the output will be 'statsnumbers.txt'. Some functions that will be useful to you for this will be FOPEN, FPRINTF, FCLOSE, FEOF, and FGETL. We have provided a 'numbers.txt' file with which you can test your function.

Remember that the Matlab help command and your favorite internet search engine are your friends.
