how to count the number of points in a scatter plot
4 ビュー (過去 30 日間)
古いコメントを表示
Thishan Dharshana Karandana Gamalathge
2017 年 2 月 9 日
コメント済み: Thishan Dharshana Karandana Gamalathge
2017 年 2 月 9 日
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!