isnan input arguments of type 'cell'
25 次查看(过去 30 天)
显示 更早的评论
I am getting a cell error
a={'2' [NaN] '4' '5'}
isnan(a)
Undefined function 'isnan' for input arguments of type 'cell'.
How can I get around this error
0 个评论
采纳的回答
the cyclist
2012-6-28
cellfun(@isnan,a)
2 个评论
Kavya Ashok
2016-9-14
This returns the index of a where nan exists. What if you want Nan to be removed from the original array?
更多回答(1 个)
Debejyo Chakraborty
2016-7-20
Sometimes this may be necessary: b = cellfun(@isnan,a,'UniformOutput',false);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!