Why does the SEMILOGY function not plot onto a logarithmic scale in MATLAB 6.5 (R13)?
Show older comments
Why does the SEMILOGY function not plot onto a logarithmic scale in MATLAB 6.5 (R13)?
Try the following lines of code:
y = rand(1, 20);
figure
hold
semilogy(1:20, y)
The resulting graph is plotted in a linear fashion and not in semi-log fashion. However, if I rearrange the order of the last two commands, the axes remains semilog.
Accepted Answer
More Answers (1)
Mustafa qays
on 13 Nov 2017
Edited: Mustafa qays
on 13 Nov 2017
You can change it to semilogy at the end , even if you used plot instead of semilogy
y = rand(1, 20);
figure
hold
plot(1:20, y)
set(gca,'yscale','log')
Categories
Find more on Polar Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
