Inaccurate data in datatips of MATLAB plot

I have 3455297x1 matrix, when I try to plot it and check the datatips, the datatip shows inaccurate x axis values.
I am using R2020a. Can I change some settings to get the accurate data in datatips?
Thanks.

Antworten (1)

Mehmed Saad
Mehmed Saad am 30 Jun. 2020

0 Stimmen

fig = figure;
plot(1:3455297,1.026*ones(1,3455297))
X=datacursormode(fig);
X.UpdateFcn = @myupdatefcn;
where myupdatefcn is provided in following link by Jan

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Gefragt:

am 30 Jun. 2020

Beantwortet:

am 30 Jun. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by