Fsurf warnings, fails on array input.
Mostrar comentarios más antiguos
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)
Respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!