x=0:pi/30:3*pi;
y1=2*sin(3*x)./sqrt(x+2);
y2=4*cos(x)./sqrt(x+4);
y3=y1+y2;
figure(1);
subplot(2,1,1);
plot(x,y1,'green');
grid on
title('y1');
subplot(2,1,2);
plot(x,y2,'blue');
figure(2);
plot(x,y3,'red');
figure(3);
hold on; plot(x,y1,'green');plot(x,y2,'blue');plot(x,y3,'red');
title('y1+y2+y3');
Rafal2iomuss