Está en la página 1de 1

%SEAL 6

t=0:dt:5;
dt=1e-2;
y=(t-1).*(escalon(t+1)-escalon(t-1));
plot(t,y)
%Segunda opcion
x = -6 : .01 : 6;
y = diente(x);
plot(x, y)
axis([-6 6 -1.5 1.5])
%SEAL 7
t= -3:dt:6;
dt=1e-3;
f1= (t-1);
f2= (-t+3);
f=(f1.*(1<=t & t<2) + f2.*(2<=t & t<=3))/2;
plot(t, f)

También podría gustarte