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
This MATLAB function plots x- and y-coordinates using a base-10 logarithmic scale on the x-axis and a linear scale on the y-axis.
Videos
Log plot in matlab | MATLAB logarithmic plot | MATLAB ...
03:31
How to plot log function in matlab | log function plotting in matlab ...
Matlab: logarithmic plots, yyaxis, bar graphs, pie charts, and ...
06:53
How to Put a Logarithmic Scale in the Axis in MATLAB (4K UHD) - ...
How to Plot a Log Scaled Graph on MATLAB
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.
MathWorks
mathworks.com › rf toolbox › visualization and data export
loglog - Plot specified circuit object parameters using log-log scale - MATLAB
This MATLAB function plots the circuit parameter circuitPara from the RFCKT or RF data object h using a log-log scale.
MathWorks
mathworks.com › matlab › graphics › labels and styling › axes appearance
zscale - Set or query z-axis scale (linear or logarithmic) - MATLAB
Create matrices X, Y, and Z, and use them to create a surface plot. [X,Y] = meshgrid(0:1:100); Z = X.*Y; surf(X,Y,Z,EdgeColor="none") view(-145,10) Change the scale of the z-axis to logarithmic.
TutorialsPoint
tutorialspoint.com › matlab › matlab_logarithmic_axes_plots.htm
MATLAB - Logarithmic Axes Plots
In this example, the loglog(X, Y, 'r--o') syntax is used to create a plot with both the x-axis and y-axis on a base-10 logarithmic scale. The LineSpec parameter ('r--o') specifies a red dashed line with circular markers.
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/matl... plot logarithmic contours of the ‘Z’ matrix, it will be necessary to calculate the logarithm of the matrix....
MathWorks
mathworks.com › matlabcentral › answers › 2026452-scaling-y-axis-by-natural-log-scale
Scaling Y-Axis by natural log scale. - MATLAB Answers - MATLAB Central
September 27, 2023 - Logarithmic scale means that two numbers whose ratio is a given value are the same distance apart (as opposed to linear scale which means that two numbers whose difference is a given value are the same distance apart).
MathWorks
mathworks.com › matlabcentral › answers › 13005-histogram-y-axis-to-logarithmic-scale
Histogram Y axis to Logarithmic Scale - MATLAB Answers - MATLAB Central
August 3, 2011 - https://www.mathworks.com/matlabcentral/answers/13005-histogram-y-axis-to-logarithmic-scale#comment_442611 ... on a histogram that I plotted in Matlab 2016b using the "histogram" command, and it worked like a charm. It kept the graph as a histogram, and just changed the y-axis to logarithmic scale, exactly as desired.
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.
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 - In Matlab, we use a log plot to plot the graphs in logarithmic scales in both horizontal and vertical axes.
Call +917738666252
Address Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
MathWorks
mathworks.com › matlabcentral › answers › 471962-plot-bar-chart-with-log-scale-on-y-axis
Plot bar chart with log scale on y axis - MATLAB Answers - MATLAB Central
July 16, 2019 - Plot bar chart with log scale on y axis. Learn more about logscale, barchart
MathWorks
mathworks.com › matlabcentral › answers › 1792-log-scale-graphic-with-negative-value
Log scale graphic with negative value - MATLAB Answers - MATLAB Central
February 22, 2011 - https://www.mathworks.com/matlabcentral/answers/1792-log-scale-graphic-with-negative-value#answer_2662 ... I can't look at the absolute value because I have to show and upward (positive) or downward (negative) flux. I tried with the absolute value and plotting with a different colour for negative value.
MathWorks
mathworks.com › matlab › graphics › labels and styling › axes appearance
xscale - Set or query x-axis scale (linear or logarithmic) - MATLAB
xscale(scale) sets the scale of the x-axis to be linear or logarithmic in the current axes. Specify scale as "linear" or "log". You can also omit the parentheses and quotation marks when using this syntax. For example, xscale log is equivalent to xscale("log"). ... xscale(ax,___) sets the scale ...