필터 지우기
필터 지우기

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

채택된 답변

Image Analyst
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 CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by