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

2 visualizzazioni (ultimi 30 giorni)
Need code for this program
  3 Commenti
Walter Roberson
Walter Roberson il 29 Ott 2021
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.

Accedi per commentare.

Risposte (1)

Drishan Poovaya
Drishan Poovaya il 1 Nov 2021
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

Categorie

Scopri di più su Mathematics and Optimization in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by