draw a virtical line in loglog plot...
조회 수: 31 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Walter Roberson
2015년 9월 22일
편집: Walter Roberson
2015년 9월 22일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Log Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!