How to set X axis limit as 10 to power 1 up to 10 to power 5

1 visualización (últimos 30 días)
set(hAx(1),'XLim',[1e1 1e5])
Please find the attachment. I need some thing like that.
  1 comentario
KSSV
KSSV el 9 de Abr. de 2018
What problem you have with this? YOu can straight away use xlim eh.

Iniciar sesión para comentar.

Respuesta aceptada

Adam
Adam el 9 de Abr. de 2018
Editada: Adam el 9 de Abr. de 2018
set( hAxes, 'XScale', 'log' )
will give you the logarithmic axes scale which you can combine with XLim. I can't remember off-hand when logarithmic axes were introduced, but I think it was a long time ago so whatever version you are using this should work.

Más respuestas (0)

Categorías

Más información sobre MATLAB 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