6. Write a MATLAB program to Plot the spectra of the signal x[n]=sin(nπ/3)

4 次查看(过去 30 天)
Need code for this program
  3 个评论
Walter Roberson
Walter Roberson 2021-10-29
I would point out that the sooner you start programming the code, the sooner you will have it done. We are not going to provide you with the solution to your homework. If you ask specific questions or show your code and ask about specific errors then we will assist with that.

请先登录,再进行评论。

回答(1 个)

Alamanda Ponappa Poovaya
The code snippet below should solve your question.
n = 1:0.01:5;
y = sin(n*pi/3);
plot(n,y);
Modify the range of n as required

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by