How to remove rows in which at least one NaN values can found?

조회 수: 9 (최근 30일)
Mr M.
Mr M. 2018년 6월 11일
답변: Image Analyst 2018년 6월 11일
How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

채택된 답변

Image Analyst
Image Analyst 2018년 6월 11일
If m is your matrix:
m(any(isnan(m), 2), :) = []

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by