How to plot a line on a log plot
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to plot a line on a log plot. I am using the same method as if I was to draw a line on a standard plot ie. hold on, plot(x,y) etc. Instead of plotting the line it just plots 2 dots. Is there any way to get around this?
2 comentarios
the cyclist
el 3 de Sept. de 2013
Can you just post your code, or ideally a very distilled example that shows what you mean?
Respuesta aceptada
the cyclist
el 3 de Sept. de 2013
Editada: the cyclist
el 3 de Sept. de 2013
Well, I can't replicate your plot, because I don't have access to your variable final_matrix, but I am suspicious of your plot() command having a zero in it. log(0) is -Inf, so I think you may have a difficult time plotting that.
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh 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!