Question: 5. Write a matlab function that outputs to a text file the names and numerical scores of five students. Print the scores to one digit
5. Write a matlab function that outputs to a text file the names and numerical scores of five students. Print the scores to one digit beyond the decimal point using a for loop and fprintf. Be sure to appropriately open and close the file (using fopen and fclose). Check the file generated is correct; it should look like this: Name Score John 9.4 Jane 8.7 Maya 10.0 Petros 8.8 Anil 9.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
