Add a semilogx axis to a plot given by a function

2 次查看(过去 30 天)
I am using the function obw() to plot occupied bandwidth with the code:
obw(signal, fs);
It plot it on a normal frequency linar scale and I would like to plot it with a log x-axis (like when you use the function semilogx(). How can I do this? Thanks heaps!

采纳的回答

Walter Roberson
Walter Roberson 2015-10-26
set(gca,'XScale', 'log')
  2 个评论
Butterflyfish
Butterflyfish 2015-10-26
编辑:Butterflyfish 2015-10-26
Thank you very much Walter! It worked. I wanted to add minor ticks and so did:
set(gca,'XMinorTick','on')
But that doesn't work. Any hints why?
EDIT: I found out that this problem disappear when I remove the change of font size that I had set up... not sure why but I don't mind!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by