多参数方程组求解出的结果为什么是空的?。
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!