Question: Write a Matlab script that does the following (obviously, the order will need adjustment): Prompt the user for an input file name and read the
Write a Matlab script that does the following (obviously, the order will need adjustment): Prompt the user for an input file name and read the user's input to a string variable. Note that using the input function will require the 's' argument to let it know the user will enter a string. Declare an array that is 55 and initialize each element with the value 0. The zeros function can do this in one step. Open the file name the user has entered for reading and use a loop to and read the values into your array. Close the input file. Use a separate loop to print the array to the console in a neat table. The output should show 4 digits to the right of the decimal place and use no more than 10 characters for each number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
