Look at this example
t1=0:0.1:10;
t2=0:0.1:5;
y1=sin(t1);
y2=cos(t2);
v=[0.1 0.1 0.4 0.8 ;0.5 0.1 0.4 0.8]
subplot(1,2,1),h=plot(t1,y1,'r');
set(gca,'position',v(1,:))
set(gca,'ytick',[])
subplot(1,2,2),h=plot(t2,y2,'g');
set(gca,'position',v(2,:))
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!