Fsurf warnings, fails on array input.

Hello everyone. This code doesn't want to run, error occurs. What's the problem? Please, help. My code:
p= @(x,y,z) (integral(@(x1)(x1.*x.*y.*z),0,5));
q = @(y,z) integral(@(x) Psi(x,y,z),0,5,'ArrayValued',true);
fsurf(q)
My error:
Warning: Function fails on array inputs. Use element-wise operators to increase speed.
> In matlab.graphics.function.FunctionSurface>getFunction
In matlab.graphics.function.FunctionSurface/set.Function
In matlab.graphics.function.FunctionSurface
In fsurf>singleFsurf (line 254)
In fsurf>@(f)singleFsurf(cax,{f},extraOpts,args) (line 220)
In fsurf>vectorizeFsurf (line 220)
In fsurf (line 196)
In Untitled13 (line 3)

Answers (0)

Asked:

on 18 Jun 2018

Community Treasure Hunt

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

Start Hunting!