Professional Documents
Culture Documents
'Original Plot 1' 'Time in S' 'Amplitude in V'
'Original Plot 1' 'Time in S' 'Amplitude in V'
'Original Plot 1' 'Time in S' 'Amplitude in V'
01:5;
x1=(1)*(t>=0&t<=2);
subplot(5,1,1);
plot(t,x1);
title('original plot 1');
xlabel('time in s');
ylabel('amplitude in v');
grid;
axis([-1,3,0,2.5]);
x2=(1)*(t>=0.5&t<=1.5);
subplot(5,1,2);
plot(t,x2);
title('original plot 2');
xlabel('time in s');
ylabel('amplitude in v');
grid;
axis([-1,3,0,2.5]);
y1=x1+x2;
subplot(5,1,3);
plot(t,y1);
title('addition of plot');
xlabel('time in s');
ylabel('amplitude in v');
grid;
axis([-1,3,0,2.5]);
y2=x1-x2;
subplot(5,1,4);
plot(t,y2);
title('substraction of plot');
xlabel('time in s');
ylabel('amplitude in v');
grid;
axis([-1,3,0,2.5]);
y3=x1.*x2;
subplot(5,1,5);
plot(t,y3);
title('multipication of plots');
xlabel('time in s');
ylabel('amplitude in v');
grid;
axis([-1,3,0,2.5]);