1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>SEMILOGY Semilog Y Axis Plot Function
</TITLE>
</HEAD>
<BODY>
<H2>SEMILOGY Semilog Y Axis Plot Function
</H2>
<P>
Section: <A HREF=sec_handle.html> Handle-Based Graphics </A>
<H3>Usage</H3>
This command has the exact same syntax as the <code>plot</code> command:
<PRE>
semilogy(<data 1>,{linespec 1},<data 2>,{linespec 2}...,properties...)
</PRE>
<P>
in fact, it is a simple wrapper around <code>plot</code> that sets the
y axis to have a logarithmic scale.
<H3>Example</H3>
Here is an example of an exponential signal plotted first on a linear
plot:
<PRE>
--> x = linspace(0,2);
--> y = 10.0.^x;
--> plot(x,y,'r-');
</PRE>
<P>
<P>
<DIV ALIGN="CENTER">
<IMG SRC="semilogy1.png">
</DIV>
<P>
and now with a logarithmic y axis
<PRE>
--> semilogy(x,y,'r-');
</PRE>
<P>
<P>
<DIV ALIGN="CENTER">
<IMG SRC="semilogy2.png">
</DIV>
<P>
</BODY>
</HTML>
|