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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by