To minimize the function f(x1,x2) = -(x1/2) - (3*x2 / 2)
in MATLAB, we can use the fminsearch
built-in function.
Here is the MATLAB code to implement the minimization:
main.m151 chars9 lines
This will output the coordinates of the minimum point of the function.
gistlibby LogSnag