How to plot semilog y graphic in Matlab?

1 Ansicht (letzte 30 Tage)
nancy
nancy am 12 Okt. 2016
Kommentiert: nancy am 12 Okt. 2016
Hi;
I have a .txt file with two columns.. Second column is between 180.2E+03 and 11.5. I want to plot second column as a semilog(y) axis. I want the first column to stay in linear X axis. Could you please help me? How can I do this?
You can find file in the attached .txt file.
Thank you..

Akzeptierte Antwort

Massimo Zanetti
Massimo Zanetti am 12 Okt. 2016
Bearbeitet: Massimo Zanetti am 12 Okt. 2016
The matlab function semilogy() is what you need:
A=textread('test_1.txt');
semilogy(A(:,1),A(:,2));
grid on;
  1 Kommentar
nancy
nancy am 12 Okt. 2016
Thank you very much for your response.. That's Ok..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by