semilogx(X, Y)
semilogx(X, Y, LineSpec)
semilogx(Y)
semilogx(Y, LineSpec)
semilogx(ax, ...)
semilogx(..., propertyName, propertyValue)
go = semilogx(...)
| Parameter | Description |
|---|---|
| X | Log scale coordinates: scalar, vector or matrix. |
| Y | Linear scale coordinates: scalar, vector or matrix. |
| LineSpec | Line style, marker, and/or color: character vector or scalar string. |
| ax | a scalar graphics object value: parent container, specified as a axes. |
| propertyName | a scalar string or row vector character. see help of 'line' for property list. |
| propertyValue | a value. |
| Parameter | Description |
|---|---|
| go | a graphics object: line type. |
semilogx(X, Y) plots data using a base 10 logarithmic scale for the x-axis and a normal (linear) scale for the y-axis.
semilogx has the exact same syntax as the plot command.
f = figure();
x = logspace(-1,2);
semilogx(x, x);
grid on
f = figure();
x = logspace(-1, 2, 15);
y = 13 + x;
semilogx(x, y, 'x', 'MarkerFaceColor', [0 0.447 0.741])
grid on
| Version | Description |
|---|---|
| 1.0.0 | initial version |