i am not getting correct output for this sawtooth plot
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Attaullah Shafiq
il 31 Mag 2020
Commentato: Attaullah Shafiq
il 31 Mag 2020
I have to plot sawtooth with amplitude of 4 and freq(fs) of 30
I m solving like sine wave. kindly find mistakes..
t = 0:5:30;
a = 4;
x = a*sawtooth(t);
plot(t,x)
axis([0 30 0 4])
7 Commenti
Risposta accettata
madhan ravi
il 31 Mag 2020
T = 6;
Fs = 1e3;
dt = 1/Fs;
t = 0:dt:T-dt;
a = 4;
x = a*sawtooth(2*pi*t);
t = t*5;
plot(t,x)
grid on
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spectral Measurements 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!