Question: please provide solution on paper (matlab student.dat) Write a script studhts that will first attempt to open the file 'studhts.dat' created in Q-3. If the

please provide solution on paper (matlab student.dat)
Write a script studhts that will first attempt to open the file 'studhts.dat' created in Q-3. If the file open is not successful, an error message should be printed. If it is successful, the script will read the data into strings, one line at a time. Print for each person the name in the form last, first' followed by the height. Also, calculate and print the number of students having heights less than 160. Finally, print whether or not the file close was successful. For example, the result of running the script would look like this: [6] Shukla, Anubhav 143.5 Jindal, Ram 156.9 Singh, Saurav 175 Number of students having heights less than 16 File closed successfully
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
