MATLAB Answers

Why this ERROR is coming

조회 수: 28(최근 30일)
MINATI
MINATI 30 Apr 2019
댓글: Torsten 30 Apr 2019
M=1;Kp=100;
P2=M+(1/Kp);P3=P2+1i*w;
U7=exp(y*sqrt(P3)).*(1-erf(y/(2*sqrt(t))+ sqrt(P3*t)));
Error using erf (error function)
Input must be real and full.
Error in
U7=exp(y*sqrt(P3)).*(1-erf(y/(2*sqrt(t))+ sqrt(P3*t)));
  댓글 수: 8
Torsten
Torsten 30 Apr 2019
Or maybe another alternative:
https://de.mathworks.com/matlabcentral/fileexchange/18312-error-function-of-complex-numbers

댓글을 달려면 로그인하십시오.

답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by