NaN problem in my plot
2 ビュー (過去 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!