Effacer les filtres
Effacer les filtres

how to count the number of points in a scatter plot

2 vues (au cours des 30 derniers jours)
Hi,
I made a scatter plot using two columns where there were a few NaNs. Those rows were automatically get eliminated when I use the "scatter" command. Now I want to see how many data points on the scatter plot. Please help me with this. Thanks

Réponse acceptée

Image Analyst
Image Analyst le 9 Fév 2017
How about using isnan() on the x and y to find out which are not nans?
numberOfGoodPoints = sum(~isnan(x) & ~isnan(y))

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by