Assignment 4 Sine Curve Problem Description Look at the file \'SineCurve.pdf on
ID: 3890775 • Letter: A
Question
Assignment 4 Sine Curve Problem Description Look at the file 'SineCurve.pdf on Blackboard for the problem description Write a MATLAB program called SinCurve to plot one cycle of f(t)-sin(wt) using t= 100 linearly-spaced points from 0 to T, wh T is the period of the sine curve. The period of f(t)-sin(wt) is 2pi/w The program should prompt the user for the value of w (called angular frequency). The sine curve should be plotted with a green line, and should include a title. For example: >>SinCurve Enter the angular frequency: 2"pi IMPORTANT NOTE: Cody does not display a figure window, However, Cody can test for the correctness of items on the figure window. Name the input variable w. Place the array of 100 values into an output variable named t The output will look like this, for any value of wExplanation / Answer
1) You are being asked to create a Matlab script file not a function file.
2) You need to use the command linspace instead of the line t = 0:0.0001:S
Possible errors in your code.1) You are being asked to create a Matlab script file not a function file.
2) You need to use the command linspace instead of the line t = 0:0.0001:S