1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| close all
clear all
clc
x = -2*pi:pi/20000:2*pi;
axes('Units','Normalized',...
'Position',[.05 .1 .9 .2667]);
plot(x,cos(x))
legend('cos(x)')
set(gca,'Ylim',[-1.2,1.2],'Xlim',[x(1),x(end)])
grid on
axes('Units','Normalized',...
'Position',[.05 .3667 .9 .2667]);
plot(x,sin(x))
set(gca,'XTickLabel',{''},'Ylim',[-1.2,1.2],'Xlim',[x(1),x(end)],'YAxisLocation','right')
grid on
legend('sin(x)')
axes( 'Units','Normalized',...
'Position',[.05 .6334 .9 .2667]);
plot(x,tan(x))
set(gca,'XTickLabel',{''},'Ylim',[-55,55],'Xlim',[x(1),x(end)])
grid on
legend('tan(x)')
set(gcf,'color','w') |
Partager