Add a semilogx axis to a plot given by a function

1 Ansicht (letzte 30 Tage)
Butterflyfish
Butterflyfish am 26 Okt. 2015
Kommentiert: Walter Roberson am 26 Okt. 2015
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!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Okt. 2015
set(gca,'XScale', 'log')
  2 Kommentare
Butterflyfish
Butterflyfish am 26 Okt. 2015
Bearbeitet: Butterflyfish am 26 Okt. 2015
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!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by