Plotting (16/43) >Creating Multiple Figures √ figure(h) figure(h)makes h the current figure,forces it to become visible, and raises it above all other figures on the screen.if figure h does not exist,and h is an integer,a new figure is created with handle h. e.g. figure(1) x=0:0.05:2; yl=exp(x); plot(x,y1) figure(2) CPHAW plot(x,exp(-x)) @月诱大学 TONGJI UNIVERSITY
Plotting (16/43) ➢ Creating Multiple Figures ✓ figure(h) figure(h) makes h the current figure, forces it to become visible, and raises it above all other figures on the screen. if figure h does not exist, and h is an integer, a new figure is created with handle h. e.g. figure(1) x=0:0.05:2; y1=exp(x); plot(x,y1) figure(2) plot(x, exp(-x))
Plotting (17/43) >> figure(1) X=00.052对 And you could enter yi=exp(x); gef'to return the plot(x,yi) figure(2) number of current plot(x,exp(-x)) figures >gcf ans= @日济大学 AW 2 TONGJI UNIVERSITY
Plotting (17/43) • And you could enter ‘gcf’ to return the number of current figures