How do you solve simultaneous non-linear equations in Matlab? I figured out I need to use fsolve or lsqnonlin, but I couldn't get the right answer using fsolve.
The equations that I need to solve are in this form:
y1=1-2cos(x1)+2cos(x2)-2cos(x3)=0.5
y2=-2cos(3*x1)+2cos(3*x2)-2cos(3*x3)=0...