多参数方程组求解出的结果为什么是空的?。
이전 댓글 표시
E1=1;
E5_=0;
syms t k a phil E1_ E2 E2_ E6 E6_ E5
eqns=[E2==t*E1+1j*k*E5_;
E5==t*E6+1j*k*E2_;
E6_==t*E5_+1j*k*E1;
E1_==t*E2_+1j*k*E6;
E6==E2*a*exp(-1j*phil);
E2_==E6_*a*exp(-1j*phil)]
[answ1,answ2] = solve(eqns,[E1_,E5])
我希望的解是E1_=2*j*t*k*a*exp(-j*phil) E5=(t^2-k^2)*a*exp(-j*phil)
但是现在代码显示的answ1 =
Empty sym: 0-by-1
answ2 =
Empty sym: 0-by-1
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!