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!