Fsurf warnings, fails on array input.
Afficher commentaires plus anciens
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)
Réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots 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!