SEMILOGX Semilog X Axis Plot Function

Section: Handle-Based Graphics


This command has the exact same syntax as the plot command:
  semilogx(<data 1>,{linespec 1},<data 2>,{linespec 2}...,properties...)

in fact, it is a simple wrapper around plot that sets the x axis to have a logarithmic scale.


Here is an example of an exponential signal plotted first on a linear plot:
--> y = linspace(0,2);
--> x = (10).^y;
--> plot(x,y,'r-');

and now with a logarithmic x axis

--> semilogx(x,y,'r-');