NaN problem in my plot
조회 수: 1 (최근 30일)
이전 댓글 표시
t=linspace(-1.5,1.5);
y=(1/(2*pi))*((exp(-t.^2)-exp(-(pi+2)*t.^2))/(t.^2)+(pi-1)*exp(-t.^2));
plot(t,erfc,'b--o')
this function for t=0 should be erfc=1, but at the plot gets the price y=3...., what's wrong
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 6월 4일
You are calling the mathematical function erfc with no arguments, right after you compute y but ignore the value of y. Perhaps you intend to plot erfc(y)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!