MATLAB: Where am I going wrong with the code integrationvector pv=@(x,y,z) (x.*(y.^2)*(exp(-2*z.))) Q=integral3(pv,0,2,0,2,0,2) when I add a . to the z is when I get an error Best Answer pv=@(x,y,z) (x.*(y.^2).*(exp(-2.*z))) Related SolutionsMATLAB: How to draw surface You can draw it using meshgrid and surf[X, Y] = meshgrid(linspace(-3,3));Z = exp(-X.^2-Y.^2);surf(X,Y,Z)shading interp MATLAB: MATLAB int function problem while evaluating a symbolic definite integral simplify(ans, 'steps', 100) Related QuestionWhere did I go wrongWhere am I going wrong in setting up this function
Best Answer