Borrar filtros
Borrar filtros

what functionalDerivative returns is a 1*1 symfun, not a vector

2 visualizaciones (últimos 30 días)
Hi guys,
I am trying the codes
syms u(x) v(x)
H = u^2*diff(v,x)+v*diff(u,x,x);
D = functionalDerivative(H,[u v])
Actually, the D returned by functionalDerivative is a 1*1 symfun, but a 1 * 2 vector of symbolic functions.
So how to return a 1*2 vector?
Many thanks.

Respuesta aceptada

Stephan
Stephan el 15 de Jul. de 2019
syms u(x) v(x)
H = u^2*diff(v,x)+v*diff(u,x,x);
D(1) = functionalDerivative(H,u)
D(2) = functionalDerivative(H,v)

Más respuestas (0)

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by