Filtering Columns by Contents of Rows
조회 수: 1 (최근 30일)
이전 댓글 표시
I have arrays that look like this:
A =
1 NaN NaN
2 3 4
2 5 NaN
I want to remove columns that contain rows with less than n non-NaN entries. In this case, with n=2, the first column of A would be removed, since the first row contains only 1 non-NaN value. The resulting array would be:
A =
NaN NaN
3 4
5 NaN
Is there a compact way to do this? I hope this explanation makes sense!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Banks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!