This is an example of how to customize axes settings in a plot in MATLAB®.
Read about the "XAxis" property in the MATLAB documentation. This feature is available in R2015b or newer.
For more examples, go to MATLAB Plot Gallery - http://www.mathworks.com/discovery/gallery.html
MathWorks Plot Gallery Team (2019). MATLAB Plot Gallery - Customize Axes Settings (https://www.mathworks.com/matlabcentral/fileexchange/63459-matlab-plot-gallery-customize-axes-settings), MATLAB Central File Exchange. Retrieved .
Added live script
Create scripts with code, output, and formatted text in a single executable document.