NaN problem in my plot
Afficher commentaires plus anciens
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
Réponses (1)
Walter Roberson
le 4 Juin 2019
0 votes
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)
Catégories
En savoir plus sur Multirate Signal Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!