Vector X=1:2:20; and Y=sin(x). Plot Y versus X for one subplot and Y (logarithmic scale) versus X for the second subplot. >> subplot (2,1,1) >>plot(X,Y) >> subplot (2,1,2) > plot (X,log(Y)) >> subplot (2,2,1) > plot (X,Y) > subplot (2,2,2) >> semilogy(X,Y) >> subplot (2,1,1) >>plot(Y,X) >> subplot (2,1,2) >>emilogy (Y,X) >> subplot (2,1,1) >plot(X,Y) >> subplot(2, 1, 2) >semilogy(X,Y)