Prev: HUD graphic in vrml
Next: error " Output argument "rate_match_output1" (and maybe others) not assigned during call to "C:\Users\USER\Documents\MATLAB\new_work\turbo1.m>turbo1".
From: jeremy meduna on 23 Mar 2010 15:34 A text file named "grades.txt" contains students names and grades in the following format: John Doe A A B B C Jane Doe C D C B A A Jill Doe C D F F Write a matlab script that reads the file, calculates the GPA for each student and save the fist name, last name and GPA to an excel file "gpa.xls" So far all I can come up with is: fh = fopen('grades.txt', 'r'); line = ''; while ischar(line) [first line] = fgetl(fh) Completely unsure on how to do this. Having lots of trouble in this class, would appreciate any help! |