![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/629940/image.png)
Plotting Sinusoidal Wave Graph on MatLab
1 次查看(过去 30 天)
显示 更早的评论
I want to plot the graph of this sinusoidal equation on matlab but I could not accomplished right...
Here is my sinusoidal wave equation:
v(t) = 5cos(1256t - pi/4)
0 个评论
采纳的回答
William Rose
2021-5-25
Start by figuring out a good time range. Since you have cos(1256t-pi/4), the period is
, so let's plot for two periods, i.e. time=0 to 0.01:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/629940/image.png)
t=0:.0005:0.01; %create vector of time values, with step size=0.0005
x=5*cos(1256*t-pi/4); %compute x(t)
plot(t,x,'r.-') %plot
Try it.
5 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!