how to count the number of points in a scatter plot
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2017-2-9
How about using isnan() on the x and y to find out which are not nans?
numberOfGoodPoints = sum(~isnan(x) & ~isnan(y))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!