Min and max in integral
Mostrar comentarios más antiguos
I want to solve the following integral: z = 15; syms x1 x2 x3 x4 f f = ( x1 + x2 + x3 + max(0,x3-x4) )*(exp(-lambda*x4)*power(lambda,Q)); result = int(int(int(int(f,'x1',0,x2),'x2',0,x3),'x3',0,x4),'x4',0,z);
But i have this error: Undefined function 'max' for input arguments of type 'sym'.
Could you please help me...
Respuestas (1)
Massimo Zanetti
el 7 de Oct. de 2016
Editada: Massimo Zanetti
el 7 de Oct. de 2016
To get max of symbolic variables x,y try this:
max(double([x,y]))
1 comentario
saeed poormoaied
el 8 de Oct. de 2016
Categorías
Más información sobre Symbolic Math Toolbox 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!