how i can have gradient of a multivariate function like f(x,y) in a single function?
Mostrar comentarios más antiguos
i define multivariate function f by syms order and wish have gradient f in especial point like x0 and i can not use from for loop
for example :
syms f(x,y)
f(x,y)=x^2+y^2,x0=(1,1)
i wish have
g=f'(x,y)
then
g(1,1)=[2,2]
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Conversion 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!