Log scale x axis?

7 Ansichten (letzte 30 Tage)
Maxwell Yant
Maxwell Yant am 21 Feb. 2020
Kommentiert: madhan ravi am 22 Feb. 2020
Hello I want to have a logarthmic x axis however I think the semilogx function doesnt work when using a function. Also, if you know what the error means Id appreciate an explanation!

Akzeptierte Antwort

madhan ravi
madhan ravi am 21 Feb. 2020
set(gca, 'XScale','log') % at the end
To turn off the warning simply use dots before arithmetic operators .^ .* ./
  2 Kommentare
Maxwell Yant
Maxwell Yant am 22 Feb. 2020
Thanks! and what about if I wanted a logarthmic Y axis would i change xscale to yscale?
madhan ravi
madhan ravi am 22 Feb. 2020
Yes

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Log Plots 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