how can I read the number in figure(matlab) without rounding?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SimTec
am 19 Aug. 2021
Bearbeitet: Adam Danz
am 19 Aug. 2021
here in the figure, you can see that i cannot read the difference between the values
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 19 Aug. 2021
Bearbeitet: Adam Danz
am 19 Aug. 2021
This is a precision issue with datatips. See this answer to learn how to specify the level of precision in datatips.
Demo of method 2 from that link:
x = linspace(0,2*pi,100);
y = sin(x)*.0001 + 37.5;
ax = cla();
h = stairs(ax,x,y);
ax.XAxis.Exponent = 0;
% Modify datatip precision
h.DataTipTemplate.DataTipRows(2).Format = '%.5f'; % Y to 5dp
% Show datatip
datatip(h, h.XData(25), h.YData(25));
datatip(h, h.XData(47), h.YData(47));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!