draw a virtical line in loglog plot...
25 ビュー (過去 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!