Log scale x axis?

8 visualizaciones (últimos 30 días)
Maxwell Yant
Maxwell Yant el 21 de Feb. de 2020
Comentada: madhan ravi el 22 de Feb. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Log Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by