why matlab is not calculating erfc?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Atr cheema
il 29 Nov 2015
Risposto: Star Strider
il 29 Nov 2015
I am writing a code requiring matlab to calculate something. Matlab is showing me answer as function of erfc. I can put the answer in a seperate editor file to calculate it. Why MATLAB is not calculating erfc directly itself. My code is
deltaH = 2;
x = 100;
l = 300;
p = 2;
omea= x/l;
deltat = 5;
v = 140;
syms m
u = x/sqrt(v*deltat);
erfun = erfc(u/2*sqrt(p-m));
tek = deltaH*erfun;
summ = symsum(tek,m,1,p)
I am getting answer as 2*erfc((5*7^(1/2))/7) + 2 which can be evaluated but I want MATLAB to give me answer as a number.
0 Commenti
Risposta accettata
Star Strider
il 29 Nov 2015
I did not run your code, but if you want a numerical answer change the ‘summ’ line to:
summ = vpa(symsum(tek,m,1,p))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multirate Signal Processing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!