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

4 ビュー (過去 30 日間)
Naveen kumar Myla
Naveen kumar Myla 2021 年 10 月 29 日
回答済み: Alamanda Ponappa Poovaya 2021 年 11 月 1 日
Need code for this program
  3 件のコメント
Naveen kumar Myla
Naveen kumar Myla 2021 年 10 月 29 日
Nothing but i need code for this program
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
Alamanda Ponappa Poovaya 2021 年 11 月 1 日
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 Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by