You are on page 1of 1

diente de sierra

>> A=1;
>> w=10*pi;
>> cu=0.5;
>> t=0:0.001:1;
>> ot=A*sawtooth(w*t+cu);
>> plot(t,ot);
----------------------------------
rampa
>> t1=0:0.1:10;
>> f=t1;
>> rampa=[zeros(1,101),f];
>> t2=-10:0.1:0;
>> t=[t2,t1];
>> plot(t,rampa);
-----------------------------------
pulso triangular
>> t=-1:0.001:1;
>> w=.4;
>> x=tripuls(t,w);
>> plot(t,x); grid on
------------------------------------
seno
x = -pi:0.01:pi;
plot(x,sin(x)), grid on
------------------------------------
coseno
x = -pi:0.01:pi;
plot(x,cos(x)), grid on
------------------------------------
amortiguada
>> t=0:0.1:10;
>> y=10*sin(2*t).*exp(-0.2*t);
>> plot(t,y);

You might also like