MATLAB: XMIN must be a floating point scalar.

floating point scalarintegral3

j ai pas compris que ce que sa veut dire (XMIN must be a floating point scalar.)

Best Answer

You cannot use integral() or integral2() or integral3() with expressions that involve symbolic coefficients.
syms p x y z d
fun = @(x,y,z) (y^2 + z^2) .* p
fun = function_handle with value:
@(x,y,z)(y^2+z^2).*p
q = int(int(int(fun, x, -d/2, d/2), y, -d/2, d/2), z, 1/2, -1/2);
pretty(q)
2 2 d p (d + 1) - ------------- 12