loglog(X, Y)
loglog(X, Y, LineSpec)
loglog(Y)
loglog(Y, LineSpec)
loglog(ax, ...)
loglog(..., propertyName, propertyValue)
go = loglog(...)
| Parameter | Description |
|---|---|
| X | Log scale coordinates: scalar, vector or matrix. |
| Y | Log 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. |
loglog(X, Y) plots data using a base 10 logarithmic scale for the x-axis and the y-axis.
loglog has the exact same syntax as the plot command.
f = figure();
x = logspace(-1,2);
y = 2 .^ x;
loglog(x,y)
grid on
f = figure();
x = logspace(-1,2,20);
y = 10 .^ x;
loglog(x,y,'s','MarkerFaceColor',[0 0.447 0.741])
grid on
| Version | Description |
|---|---|
| 1.0.0 | initial version |