Calculating max, min, and saddle points
Show older comments
As of right now, I'm dealing with an assignment which wants to calculate the max, min, and saddle point of a given function. On the bottom is my current code. The problem that I am facing is I am unable to create a loop where my eqA_double are able to read X and Y solutions from M.
if true
% code
end
function Local_ex(x,y,z)
syms x
syms y
a = ((y.*x^3)+(x.*y^3)-(1.69.*x.*y));
eqA_partial_diff_x = diff(a,x)
eqA_partial_diff_y = diff(a,y)
M = solve(eqA_partial_diff_x,eqA_partial_diff_y)
N = [M.x,M.y]
eqA_double_partial_diff_x = diff(eqA_partial_diff_x,x)
eqA_double_partial_diff_y = diff(eqA_partial_diff_y,y)
eqA_double_partial_diff_y_then_x = diff(eqA_partial_diff_y,x)
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!