what functionalDerivative returns is a 1*1 symfun, not a vector
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tony Cheng
am 15 Jul. 2019
Beantwortet: Stephan
am 15 Jul. 2019
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.
0 Kommentare
Akzeptierte Antwort
Stephan
am 15 Jul. 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)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!