The best way to create that type of axes is to use the semilogy function. Alternatively, you can set the ‘YScale’ property on the axes:
set(gca, 'YScale', 'log')
***Update from Mathworks Support Team - September 2023***
As of R2023b, you can also use the 'yscale ' function. Answer from Walter Roberson on mathworks.com
MathWorks
mathworks.com › matlab › graphics › 2-d and 3-d plots › line plots
semilogx - Semilog plot (x-axis has log scale) - MATLAB
Create a linear-log plot of x and y, and call the grid function to show the grid lines. ... Create a vector of logarithmically spaced x-coordinates and two vectors of y-coordinates.
MathWorks
mathworks.com › matlab › graphics › 2-d and 3-d plots › line plots
loglog - Log-log scale plot - MATLAB
loglog(X,Y) plots x- and y-coordinates using a base-10 logarithmic scale on the x-axis and the y-axis.
Videos
Matlab: logarithmic plots, yyaxis, bar graphs, pie charts, and ...
Log plot in matlab | MATLAB logarithmic plot | MATLAB ...
03:31
How to plot log function in matlab | log function plotting in matlab ...
06:53
How to Put a Logarithmic Scale in the Axis in MATLAB (4K UHD) - ...
TutorialsPoint
tutorialspoint.com › matlab › matlab_logarithmic_axes_plots.htm
MATLAB - Logarithmic Axes Plots
In this example, loglog(X1, Y1, 'bo-', X2, Y2, 'r--') is used to create a plot with both datasets on a base-10 logarithmic scale. The first dataset is represented by blue circles connected by a solid line, and the second dataset is represented ...
MathWorks
mathworks.com › rf toolbox › visualization and data export
loglog - Plot specified circuit object parameters using log-log scale - MATLAB
loglog(___,Name,Value) plots the data of a RFCKT or RF data object with name-value arguments. ... lineseries = loglog(___) returns the line series property object lineseries. This output is the same as the output returned by the MATLAB® loglog function.
MathWorks
mathworks.com › matlab › graphics › labels and styling › axes appearance
xscale - Set or query x-axis scale (linear or logarithmic) - MATLAB
This code calls the nexttile function to create a tiled chart layout with one axes object. The second call to nexttile creates and returns the second axes object. x = 1:10000; y = log10(x); nexttile; plot(x,y) grid on title("Linear Scale") ax2 = nexttile; plot(x,y) grid on title("Log Scale")
Top answer 1 of 3
22
Alternatively, set(gca,'XScale','log') if you have your plot already.
2 of 3
16
Yes, it is possible. Use the loglog command.
The example from the Mathworks website:
x = logspace(-1,2); % generate a sequence of points equally spaced logarithmically
loglog(x,exp(x),'-s')
grid on

If you do not want both axes to be log scale, use semilogx or semilogy.
MathWorks
mathworks.com › matlab › graphics › labels and styling › axes appearance
yscale - Set or query y-axis scale (linear or logarithmic) - MATLAB
This code calls the nexttile function to create a tiled chart layout with one axes object. The second call to nexttile creates and returns the second axes object. x = 1:100; y = x.^2; nexttile; plot(x,y) grid on title("Linear Scale") ax2 = nexttile; plot(x,y) grid on title("Log Scale")
EDUCBA
educba.com › home › data science › data science tutorials › matlab tutorial › log plot matlab
Log Plot Matlab | Examples to Use Log and semilogx in Matlab
March 24, 2023 - It will plot the logarithmic values in the x-axis ranging from 10^0 to 10^4. Log plots are used in the field of economics, to estimate the numerical parameters and in the field of machine learning to transform the columns if they are not normally distributed. So, depending on the requirements we can use loglog and semilogx in Matlab. This is a guide to Log Plot Matlab. Here we discuss the introduction and working with Log Plot Matlab along with the examples and outputs.
Call +917738666252
Address Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
MathWorks
mathworks.com › matlab › graphics › labels and styling › axes appearance
zscale - Set or query z-axis scale (linear or logarithmic) - MATLAB
You can also omit the parentheses and quotation marks when using this syntax. For example, zscale log is equivalent to zscale("log"). ... zscale(ax,___) sets the scale for the specified axes object. This syntax is useful when you are working with multiple plots, either in a tiled chart layout ...
TutorialsPoint
tutorialspoint.com › how-to-create-logarithmic-scales-in-matlab
How to Create Logarithmic Scales in MATLAB
July 18, 2023 - % MATLAB program to change axis scales to logarithmic scale % Create sample data vectors x = linspace(1, 10, 10); y = x.^3; % Plot the data using various logarithmic scales figure; % Changing X-axis scale to logarithmic using semilogx function ...
MathWorks
mathworks.com › matlabcentral › answers › 1627500-plot-in-logarithmic-scale
plot in logarithmic scale - MATLAB Answers - MATLAB Central
January 12, 2022 - https://www.mathworks.com/matlabcentral/answers/1627500-plot-in-logarithmic-scale#answer_873240 · Cancel Copy to Clipboard · Ran in: The contourf function plots a plane, not a surface. To plot logarithmic contours of the ‘Z’ matrix, it will be necessary to calculate the logarithm of the matrix.
MathWorks
mathworks.com › matlabcentral › answers › 282038-how-to-draw-a-log-function
How to draw a log function? - MATLAB Answers - MATLAB Central
May 1, 2016 - You have 10.^(-.3+1.75*log10(x)) instead of your original 1+log10(x). Naturally you won’t get a straight line with that. The -.3 doesn’t make it nonlinear, but the 1.75 does. In any case you now know how to plot log10(y) = -.3+1.75*log(x).