I have a matlab function which uses fsolve built-in function. It works well on matlab side. When I try to run that matlab function in python using Oct2py, I face this error.
fsolve
Oct2py
Please help me with this error.
Thanks in advance.
Based on the code you provided, you are calling fsolve with 6 input arguments instead of the expected 3.
You say your code 'works' in matlab, but from the equivalent matlab documentation I don't see matlab being compatible with more than 3 arguments either. It is possible that your extra arguments simply get ignored in matlab. What are Xp, q, and in_param supposed to do?
Xp
q
in_param
Based on the code you provided, you are calling fsolve with 6 input arguments instead of the expected 3.
You say your code 'works' in matlab, but from the equivalent matlab documentation I don't see matlab being compatible with more than 3 arguments either. It is possible that your extra arguments simply get ignored in matlab. What are
Xp,q, andin_paramsupposed to do?