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.
Please help me with this error.
Thanks in advance.
Copyright © 2021 Jogjafile Inc.

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?