i am not getting correct output for this sawtooth plot

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 comentarios

And no of periods , how much do you want?
Amplitude 5, freq 30, per 5
I have done this ones, but now i dont get this again.
yea i get this, but i ve problem using Amplitude..
Now i ve generate this.
close all
T=6;
Fs=10000;
dt = 10/Fs;
t = 0:dt:T-dt;
x = sawtooth(2*pi*t);
t=t*5;
plot(t,x)
grid on
this close is very close, but again issue is on Amplitude.. i want amplitude=4
Now Its done now

Iniciar sesión para comentar.

 Respuesta aceptada

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

1 comentario

thank u...
how i set axis for this
axis([0 30 0 4])
but this is not aplly clearly

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 31 de Mayo de 2020

Comentada:

el 31 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by