Determining what type of data is in my array
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm writing a code to deal with a large data set and I'm not so great with Matlab just yet. I've searched, but I'm wondering if there is a function that asks the question "is this a double?" I need to throw out the data points that report NaN. Or is there another way that I can identify those data points?
댓글 수: 0
답변 (3개)
Orion
2014년 11월 6일
use isnan
A=[1 2 3 nan 5];
isnan(A)
ans =
0 0 0 1 0
see also isfloat and class
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!