Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

get log values of resultant

1 visualizzazione (ultimi 30 giorni)
aditi
aditi il 15 Lug 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
If i have final values as X= something Y=something when i plot them using plot(X,Y) command i get the desired plot in linear scale... I can change it to log scale by using loglog(X,Y) command. But I want to convert X and Y to log so that when I use plot(X,Y) command I get the same plot as I get for loglog(X,Y) command.
Please help me...
  1 Commento
Jan
Jan il 15 Lug 2013
Please post some example data, such that the difference between your needs and Matt J's approach gets clear.

Risposte (1)

Matt J
Matt J il 15 Lug 2013
Modificato: Matt J il 15 Lug 2013
plot(log10(x), log10(Y))
  2 Commenti
aditi
aditi il 15 Lug 2013
it is not giving the same result..
Matt J
Matt J il 15 Lug 2013
Modificato: Matt J il 15 Lug 2013
It does for me....
It won't reproduce the axis labeling, of course. If that's your issue, that's not a mere matter of transforming X and Y. You would have to modify the XTickLabel and YTickLabel properties of the plot.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by