semilogx, semilogy

Purpose

Semi-logarithmic plots.

Synopsis

semilogx(x,y)
semilogy(x,y)

Description

semilogx and semilogy, as well as loglog, are used exactly the same as plot, but they result in graphs on different scales.

semilogx(x,y) makes a plot using a base 10 logarithmic scale for the x-axis and a linear scale for the y-axis.

semilogy(x,y) makes a plot using a base 10 logarithmic scale for the y-axis and a linear scale for the x-axis.

Examples

A simple semilogy plot is:

x = 0:.1:10;
semilogy(x,10.^x)
          

See Also

loglog, plot

(c) Copyright 1994 by The MathWorks, Inc.