How do i plot?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Wei Jun Lee
le 25 Avr 2018
Commenté : Wei Jun Lee
le 25 Avr 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.
1 commentaire
Réponse acceptée
Pawel Jastrzebski
le 25 Avr 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:
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spectral Measurements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!