Check for incorrect argument data type or missing argument in call to function 'isnan'.

37 次查看(过去 30 天)
What is the problem with the data types, why i get this error???

回答(1 个)

Dyuman Joshi
Dyuman Joshi 2022-5-15
The output of inputdlg is in form of cell array as you can see it your command window (below your editor)
Use
isaNumber = isnan(strnum(a{1}))

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by