Indices shown in plot are off
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For large vectors, the indices shown in a figure are a bit off. For example:
test = [zeros(1,1079998), 1, zeros(1,1457106-1079998), 1, zeros(1,2159999-1457108)];
find(test) % gives correct indices: 1079999 1457108
figure; plot(test)
% The labeling of the 1's in the plot using data tips give idices of 1080000 and 1457110
This is probably a numeric precision issue.
0 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!