% Matlab Programming
% --------------------------------------------
clear all;
clc;
disp ('----------------------');
disp ('----------------------');
plot(x,y1,'-b','LineWidth',3);
hold on
plot(x,y2,'-r');
hold off
% Matlab Programming
% --------------------------------------------
clear all;
clc;
disp ('----------------------');
disp ('----------------------');
subplot(3,1,1); plot(x,y1,'-b');
legend('sin x');
subplot(3,1,2); plot(x,y2,'-r');
legend('cos x');