Plots a given dataset in 2D axes with logarithmic scales for x axis.


h = semilogx(y)

h = semilogx(x, y)

h = semilogx(x, y, x, y, …)

h = semilogx(x, y, fmt)

h = semilogx(…, property, value, …)

h = semilogx(hAxes, …)


x, y
Range of the x and y axes..
Type: double | integer
Dimension: scalar | vector | matrix
Formatting string for the curve. It can be any combination for the following strings:
  1. line style: '-', '-.', ':', '--".
  2. line color: 'r', 'g', 'b', 'c', 'y', 'm', 'w', 'b'.
  3. marker style: 's', 'o', 'd', 'x', 'v', '^', '+', '*', '.'.
Type: string
Dimension: scalar
Properties that control the appearance or behavior of the graphics object.
Type: string
Dimension: scalar
Value of the properties.
Type: double | integer | string
Dimension: scalar | vector
Axis handle. .
Type: double
Dimension: scalar


Handle of the line graphics object.


Simple semilogx example.

semilogx(rand(1, 10));


If x is omitted, the index of y is used as data to associate with x axis. Semilogx takes the optional arguments to control the line style. It can be either a format string or property/value pair(s), or both. The form is:
h = semilogx([x,] y [, fmt] [, property, value] …)
Semilogx takes more arguments to create multiple lines in one axes:
h = semilogx(x, y, x, y, …)
h = semilogx([x,] y [, fmt] [, property, value], [x,] y [, fmt] [, property, value] …) 
If the first argument of semilogx() is an axes handle, lines will be created in that axes:
h = semilogx(hAxes, …)