This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: the letter grade to the user. Assume the grades are calculated as A : 90100 B : 8090 C : 7080 D : 6070 F : < 60 If a student achieves the exact score of 70, 80, or 90, give him / her the higher grade. To turn in your homework. concatenate the two function scripts into a single text ﬁle, named lastname ¯ hw3.txt , which should look something like this: % CSC 13, Section 01, Homework 3, Your name function [y, t] = plotsine(A, f, phi) % % [y, t] = plotsine(A, f, phi) % % plots five cycles of a sine wave with amplitude A % frequency f, and phase phi (in radians), and returns two vectors % y and t which contain, respectively, the sine wave values % and the time instants spanning five cycles. % . . . end function avg ¯ grade(scores) % % avg ¯ grade(scores) calculates the average grade from an input vector % containing test scores. % . . . end % End of file The vertical dots indicate where you have to ﬁll in the code....
View
Full Document
 Fall '10
 PhillipRegali
 Sine wave, sine wave values

Click to edit the document details