Why is data cursor showing incorrectly approximated value in bar plot in MATLAB?
古いコメントを表示
Below is the code:
Lw=[98.5321 98.5321 100.5321 92.5321 88.5321 81.5321 77.5321 75.5321];
bar(Lw)
Upon executing it I get a bar plot figure, which I have attached herewith. Upon using data cursor to point to the values, I see values approximated to one decimal as given below:
Lw=[98.5 98.5 101 92.5 88.5 81.5 77.5 75.5];
Observe that Lw(3) is specially displayed with incorrect approximation i.e 101 rather than 100.5(See the file attached). Why does this happen? Also, how to have data cursor to show values upto three decimals?
2 件のコメント
Walter Roberson
2016 年 10 月 19 日
Which MATLAB release are you using, and which operating system?
When I test just now R2016b on OS-X, I get the 100.5
Thanigaivel Raja T
2016 年 10 月 19 日
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
