integral2 array output

11 visualizaciones (últimos 30 días)
HSch
HSch el 8 de En. de 2020
Respondida: Sylvain Lacaze el 8 de En. de 2020
I have a 3x3 matrix function F(x,y) which depends on a columnvector and multiple constants, i.e., F is a complex combination of the vector and constants (norm, inner products, outer products and more). The vector itself consists of at least two varibles over which i want to integrate.
I defined the constants within the function F and it works fine with integral(F,x,lims,'ArrayValued',true) when I fix one of the variables, but I have issues getting the integral2 to work due to the lack of the ArrayValued option. Is there any workaround like the one below? E.g. with nested integral functions or other options?
F=integral(@calcF,x_min,x_max,'ArrayValued',true)
function F=calcF(x,y)
F=integral(@calcFy,y_min,y_max,'ArrayValued',true) %don't know how to forward each x value in this case
end

Respuestas (1)

Sylvain Lacaze
Sylvain Lacaze el 8 de En. de 2020
Hi HSch,
Please refer to this answer, for an explanation, and alternatives:
HTH,
Sylvain

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by