The integer data sructures such as int8 or int16 has NaN values?
Afficher commentaires plus anciens
The integer data sructures such as int8 or int16 has NaN values?
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 29 Mai 2016
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
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!