Add a semilogx axis to a plot given by a function

조회 수: 3 (최근 30일)
Butterflyfish
Butterflyfish 2015년 10월 26일
댓글: Walter Roberson 2015년 10월 26일
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에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by