Gradient of a function handle

6 views (last 30 days)
Matthew
Matthew on 22 Mar 2013
I currently have a function
function y = foo(x)
y = cos(x(1)^2-x(2))*x(3)^5/sum(x)
where x is then a 3 dimensional user defined point say [1 1 1] in another function
My objective is to call the function handle in another function, enter a user defined point say [1 1 1], and then take the gradient of it by using syms.
is there a matlab function to convert these files?

Answers (0)

Community Treasure Hunt

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

Start Hunting!