How to plot a line on a log plot
조회 수: 21 (최근 30일)
이전 댓글 표시
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
the cyclist
2013년 9월 3일
Can you just post your code, or ideally a very distilled example that shows what you mean?
채택된 답변
the cyclist
2013년 9월 3일
편집: the cyclist
2013년 9월 3일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!