How do i plot?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Wei Jun Lee
il 25 Apr 2018
Commentato: Wei Jun Lee
il 25 Apr 2018
Im having problem plotting the sinusoidal time signal for (5+cos(20pt))cos(2p(100)t), having Dt=0.0001s, t=0~0.02 sec.
Risposta accettata
Pawel Jastrzebski
il 25 Apr 2018
Is this what you meant?
dt = 0.0001;
t = 0:dt:0.02;
y = (5+cos(20*pi*t)).*cos(2*pi*100*t);
figure;
plot(t,y);
Output:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/187857/image.jpeg)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!