You are on page 1of 2

clear all

clc
t=-4:0.001:4;
a=rectpuls(t);
b=2+a;
c=rectpuls(2*t);
d=rectpuls(t-2);
e=2*a;
f=2*rectpuls(2*(t-2));
figure(1);
clf;
subplot(3,2,1);
plot(t,a);
subplot(3,2,2);
plot(t,b);
subplot(3,2,3);
plot(t,c);
subplot(3,2,4);
plot(t,d);
subplot(3,2,5);
plot(t,e);
subplot(3,2,6);
plot(t,f);clear all
clc
t=-4:0.001:4;
a=rectpuls(t);
b=2+a;
c=rectpuls(2*t);
d=rectpuls(t-2);
e=2*a;
f=2*rectpuls(2*(t-2));
figure(1);
clf;
subplot(3,2,1);
plot(t,a);
subplot(3,2,2);
plot(t,b);
subplot(3,2,3);
plot(t,c);
grid on;
subplot(3,2,4);
plot(t,d);
subplot(3,2,5);
plot(t,e);
subplot(3,2,6);
plot(t,f);

clear all
clc
t=-4:0.004:4;
a=rectpuls(t);
plot(t,a);
b=2+a;
c=rectpuls(2*t);
d=rectpuls(t-2);
e=2*rectpuls(t);
f=2*rectpuls(2*(t-2))

You might also like