normcdf error
2 次查看(过去 30 天)
显示 更早的评论
Dear all,
All seemed to be working well with my code until all of a sudden I received the following error message:
??? Undefined function or method 'erfc' for input arguments of type 'double' and attributes 'full scalar
complex'.
Error in ==> normcdf at 68
p = 0.5 * erfc(-z ./ sqrt(2));
I am not certain what had happened as I was entering similar values and all was working well
回答(1 个)
Wayne King
2012-5-7
Are you attempting to input a complex number into normcdf?
erfc() only accepts real-valued input arguments. If you are not, please show what you are inputting into normcdf()
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Geometries and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!