Azzera filtri
Azzera filtri

normcdf error

1 visualizzazione (ultimi 30 giorni)
Nikolay
Nikolay il 7 Mag 2012
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 Commento
Nirmal
Nirmal il 7 Mag 2012
Do you know the z value at which this happened?

Accedi per commentare.

Risposte (1)

Wayne King
Wayne King il 7 Mag 2012
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()

Categorie

Scopri di più su Specialized Messages in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by