how to count the number of points in a scatter plot
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Thishan Dharshana Karandana Gamalathge
el 9 de Feb. de 2017
Comentada: Thishan Dharshana Karandana Gamalathge
el 9 de Feb. de 2017
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
0 comentarios
Respuesta aceptada
Image Analyst
el 9 de Feb. de 2017
How about using isnan() on the x and y to find out which are not nans?
numberOfGoodPoints = sum(~isnan(x) & ~isnan(y))
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!