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
endfunction Local_ex(x,y,z)syms xsyms ya = ((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)
Best Answer