How to set semilog axis limit

20 vues (au cours des 30 derniers jours)
Claymz
Claymz le 28 Juin 2016
Commenté : Claymz le 28 Juin 2016
How to set semilog limit on x axis? I want it to be from 100 Hz to 15 000 Hz.

Réponses (1)

Chad Greene
Chad Greene le 28 Juin 2016
semilogx(15000*rand(50),rand(50),'bo')
xlim([100 15000])
  1 commentaire
Claymz
Claymz le 28 Juin 2016
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');

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by