Evaluating with quad error

2 visualizzazioni (ultimi 30 giorni)
B
B il 18 Apr 2014
Risposto: Star Strider il 18 Apr 2014
I can't seem to get my function to work! I'm getting a not enough inputs error.
function f=f6(r)
f=r.*(1.-(r/.5)).^(1/8);

Risposte (1)

Star Strider
Star Strider il 18 Apr 2014
You need to post your code with quad to find out why it doesn’t work.
This works:
f6 = @(r) r.*(1.-(r/.5)).^(1/8);
f6i = quadl(f6, 0, 1)
yields:
f6i =
418.5726e-003 +130.0622e-003i

Categorie

Scopri di più su MATLAB 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!

Translated by