[eqns,vars] = getEqns(varargin{:}); problem with solve function
이전 댓글 표시
syms id iq f ecd ecq v0 s xd xl xad xq xf rf ra r idd iqd fd wb w
solve('-(xd+xl)*idd+xad*fd=wb*((ra+r)*id-xl*iq-w*xq*iq+ecd+v0*sin(s)','xad*idd+xf*fd=wb*(rf*efd/xad-rf*f)',idd,fd)
I am new to MATLAB.
i want the solution for idd and fd in terms of other variables, what is wrong in the above code?
Also, can solve be used for non linear equations??
답변 (1개)
Walter Roberson
2014년 3월 26일
The part that starts
((ra+r)
the first of those two ( has no matching )
Solve can be used for non-linear equations, but frequently the answer is written in terms of RootOf() something with the something not having a closed-form solution known to MuPAD. In the case of your equations, above, the expressions are linear in those variables so there is no problem.
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!