Question: Using fsolve in matlab

Dear All,


I am trying to call the maple function fsolve in the matlab. I have used maple('fsolve(x^2-4)'). It worked.


Now in the matlab code I have defined another variable. let us say a = 10.  Now I am trying to call the fsolve as follows.


I ended up with the following error.


Error, (in fsolve) number of equations, 1, does not match number of variables, 2


Could any one throw some light on this.


Thanks in advance.

Please Wait...