Azzera filtri
Azzera filtri

How to plot semilog y graphic in Matlab?

2 visualizzazioni (ultimi 30 giorni)
nancy
nancy il 12 Ott 2016
Commentato: nancy il 12 Ott 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..

Risposta accettata

Massimo Zanetti
Massimo Zanetti il 12 Ott 2016
Modificato: Massimo Zanetti il 12 Ott 2016
The matlab function semilogy() is what you need:
A=textread('test_1.txt');
semilogy(A(:,1),A(:,2));
grid on;

Più risposte (0)

Categorie

Scopri di più su Graphics Object Identification in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by