Borrar filtros
Borrar filtros

How to set linear Y-axis with logarithm diagram?

26 visualizaciones (últimos 30 días)
Lotmeri
Lotmeri el 21 de Feb. de 2019
Editada: Adam Danz el 25 de Feb. de 2019
Hi,
I have to set linear Y-axis with logarithm scale but I need to visualize the linear values ( only Y-axis, not X).
Thank you

Respuesta aceptada

Adam Danz
Adam Danz el 21 de Feb. de 2019
Editada: Adam Danz el 25 de Feb. de 2019
Set the 'YScale' axis property to 'log'
x = 1:10;
y = x.^2;
figure
h = plot(x,y)
set(gca, 'YScale', 'log')

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by