fsolve and fortran coded function
이전 댓글 표시
Hi, to speed up my matlab program, I coded the function of a system of nonlinear equations in fortran mex file, and then tried to solve this in fsolve. The fortran coded mex function works because I can insert x values and check the outcome of the equations. But it seems not solving by fsolve.
The fortran coded eqSystem taking the initial x0 just directly falls through fsolve without being solved at all. I checked the solution is exactly the same as my initial guess x0 and the errors of the equation system are not close enough to zero. Would you please advise what might be reasons for this to happen?
Thank you!
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!