integral3 I use integrl3 to calculate a simple 4th integral but...

1 view (last 30 days)
could you correct me with this code
fun=@(x,y,z,w)(x+y+z+w);
integral(@(w) integral3(fun,-1,1,-1,1,-1,1),-1,1,'ArrayValued',true)
it dose not work I don't know why!

Accepted Answer

Walter Roberson
Walter Roberson on 2 Oct 2015
integral(@(w) integral3(@(x,y,z) fun(x,y,z,w),-1,1,-1,1,-1,1),-1,1,'ArrayValued',true)

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!