Question: MATLAB script please for 15&19 15. Write a script that will read some baseball statistics from a file bbstats.dat. Every line will have a player's
15. Write a script that will read some baseball statistics from a file "bbstats.dat". Every line will have a player's name followed by the number of at bats, hits, and home runs, in that order, in the following format: Jay Rookie 2981113 The script will print each player's first name and their batting average, which is hits/at bats. 19. Create a file that has some college department names and enrollments. For example, it might look like this: Aerospace 201 Mechanic 66 Write a script that will read the information from this file and create a new file that has just the first four characters from the department names, followed by the enrollments. The new file will be in this form: Aero 201 Mech 66
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
