x=0:0.001:1; a=length(x); for j=1:a; y(j)=f(x(j)); end h=sin(x); ; figure(1) subplot(3,2,1) plot(x,y) title('grafico') xlabel('x') ylabel('f(x)') %recordar de comentarles string subplot(3,2,2) plot(x,y) title('grafico','fontsize',15) xlabel('x') ylabel('f(x)') axis([0 0.5 0 60]) subplot(3,2,6); plot(x,y,'y--',x,h,'g*'); figure(2) % COMANDO HOLD PERMITE QUE SE VAYAN SUPERPONIENDO LOS GRAFICOS hold on plot(x,y) title('grafico') xlabel('x') ylabel('f(x)') plot(x,h) axis square hold off figure(3) hold on plot(x,y) title('grafico') xlabel('x') ylabel('f(x)') plot(x,h) hold off