Clear Filters
Clear Filters

log ticks on Y-axis

5 views (last 30 days)
Mehdi Jaiem
Mehdi Jaiem on 19 Jan 2021
Commented: Mehdi Jaiem on 19 Jan 2021
Dear community
I am new to matlab and try to reproduce ticks on the Y-Axis according to a logatithmic scale (see photo).
Any help is appreciated
ylabel('F (Hz)','FontSize',12);
set(gca,'YLim',[1e2 1e4],'YTick',[10^2 10^3 10^4]);
In the exercice it is said to use logspace and not linspace

Accepted Answer

Daniel Pollard
Daniel Pollard on 19 Jan 2021
set(gca, 'YScale', 'log')
Is this what you mean?

More Answers (0)


Find more on Creating and Concatenating Matrices in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!