Inaccurate data in datatips of MATLAB plot

9 visualizaciones (últimos 30 días)
Timon Rayis
Timon Rayis el 30 de Jun. de 2020
Respondida: Mehmed Saad el 30 de Jun. de 2020
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.

Respuestas (1)

Mehmed Saad
Mehmed Saad el 30 de Jun. de 2020
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

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by