How to set semilog axis limit

14 次查看(过去 30 天)
Claymz
Claymz 2016-6-28
评论: Claymz 2016-6-28
How to set semilog limit on x axis? I want it to be from 100 Hz to 15 000 Hz.

回答(1 个)

Chad Greene
Chad Greene 2016-6-28
semilogx(15000*rand(50),rand(50),'bo')
xlim([100 15000])
  1 个评论
Claymz
Claymz 2016-6-28
xlim doesn't work- i've tried it before. this is my code:
semilogx(F1(3:233,:)*1e-3,M1(3:233,:),F1(3:233,:)*1e-3,M2(3:233,:),F1(3:233,:)*1e-3,M3(3:233,:),F1(3:233,:)*1e-3,M4(3:233,:));
legend('1','2','3','4')
grid
xlabel(' Frequency [kHz]','FontName','calibri','FontSize',35);
ylabel('PSD','FontName','calibri','FontSize',35);
title('','FontSize',35,'FontName','calibri');
set(gca,'FontSize',20, 'YLim', [30, 120]);
set(gca,'xscale','log');

请先登录,再进行评论。

类别

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