matlab rounding off while plotting

4 ビュー (過去 30 日間)
nir livne
nir livne 2017 年 6 月 14 日
コメント済み: Walter Roberson 2017 年 6 月 14 日
Hello, I've been taking measurements with many digits, and when I plot them using the plot(x,y,',') function it seems to be less precise. I would see as if many of the data points appear as the same value. I've attached an example file of a capacitor discharging.
I'd appreciate any help!
Thanks
  1 件のコメント
KSSV
KSSV 2017 年 6 月 14 日
YOu need not to worry about precision....your plot would be correct.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 14 日
Give the command
format long g
and then examine your data again.
  2 件のコメント
nir livne
nir livne 2017 年 6 月 14 日
Thanks for your help, Still the same. Is it my data or my plot? Data seems to be fine
Walter Roberson
Walter Roberson 2017 年 6 月 14 日
I saw in the past that determination tick marks was essentially limited to single precision.
If you are using R2015a or later (not R2014b) you might be able to set the axes XRuler or YRuler TickLabelFormat property to extend the precision.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by