The integer data sructures such as int8 or int16 has NaN values?
이전 댓글 표시
The integer data sructures such as int8 or int16 has NaN values?
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2016년 5월 29일
you can use cell array for that
a=[1 2 nan 3]
idx=isnan(a);
b=num2cell(uint8(a))
b(idx)={nan}
Now you can check the class of each element
s=b{1}
whos s
g=b{2}
whos g
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!