matlab semilog plot code example Example: semilog plot matlab set(gca,'yscale','log') set(gca,'xscale','linear')