Undefined function 'ismissing' for input arguments of type 'double'.
显示 更早的评论
When I was practicing 'ismissing', there was an error, shown below:
A = [3 NaN 5 6 7 NaN NaN 9]; TF = ismissing(A)
Undefined function 'ismissing' for input arguments of type 'double'.
How can I deal with it?
采纳的回答
更多回答(1 个)
deng xifei
2017-8-5
0 个投票
Hi
you should know that the type of input variable for function ismissing should be dataSet, not a vector. And you are trying to take a matrix as the input, so you get the error tips.
2 个评论
YUXUAN CHEN
2017-8-7
Walter Roberson
2017-8-7
This advice is not correct. ismissing() is defined for at least the following data types:
- double, single;
- char, string, cell of character vectors;
- duration, calendarDuration, datetime;
- categorical
and possibly others.
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!