How to check if cell has particular value or not?
조회 수: 24 (최근 30일)
이전 댓글 표시
Hi,
I have variable named 'result1' which is basically 1*2 cell and i want to write condition saying.
Thanks in Advance
if result1="NaN" % either in index1 or index2
% do this cal
else
% do this cal
end
댓글 수: 0
채택된 답변
madhan ravi
2019년 5월 22일
contains() - if it contains "NaN" a string
isnan() - if it contains NaN value
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!