semilogx
Semilog plot (x-axis has log scale).
📝Syntax
semilogx(X, Y)
semilogx(X, Y, LineSpec)
semilogx(Y)
semilogx(Y, LineSpec)
semilogx(ax, ...)
semilogx(..., propertyName, propertyValue)
go = semilogx(...)
📥Input Arguments
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.
📤Output Arguments
Parameter Description
go a graphics object: line type.
📄Description

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.

💡Examples
f = figure();
x = logspace(-1,2);
semilogx(x, x);
grid on
Example illustration
f = figure();
x = logspace(-1, 2, 15);
y = 13 + x;
semilogx(x, y, 'x', 'MarkerFaceColor', [0 0.447 0.741])
grid on
Example illustration
🔗See Also
semilogylineplotgrid
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub