draw a virtical line in loglog plot...

30 visualizaciones (últimos 30 días)
Chris E.
Chris E. el 22 de Sept. de 2015
Editada: Walter Roberson el 22 de Sept. de 2015
I would like to draw a straight vertical line in a loglog plot, but am not sure how. Here is what I got:
loglog([0 0], [0.0000001 10],'r')
It plots a blank plot with no lines at all. Any help will be appreciated! Thank you.

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Sept. de 2015
Editada: Walter Roberson el 22 de Sept. de 2015
loglog([.1 .1], [0.0000001 10], 'r')
Notice that I did not use 0 for the x. log(0) is -infinity and infinities are not drawn. The value you use instead of .1 should be the value at the (non-zero) location you want.

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