semilogx
Plots a given dataset in 2D axes with logarithmic scales for x axis.
Syntax
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, …)
Inputs
- x, y
- Range of the x and y axes..
- fmt
- Formatting string for the curve. It can be any combination for the following
strings:
- line style: '-', '-.', ':', '--".
- line color: 'r', 'g', 'b', 'c', 'y', 'm', 'w', 'b'.
- marker style: 's', 'o', 'd', 'x', 'v', '^', '+', '*', '.'.
- property
- Properties that control the appearance or behavior of the graphics object.
- value
- Value of the properties.
- hAxes
- Axis handle. .
Outputs
- h
- Handle of the line graphics object.
Example
Simple semilogx example.
semilogx(rand(1, 10));
Comments
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, …)