最后一句换成
syms a b
[a,b]=solve(a*J(1)/79.8^2+Lamda(1)*sqrt(J(1))/79.8+b*I1(1)/79.8-1,a*J(2)/79.8^2+Lamda(2)*sqrt(J(2))/79.8+b*I1(2)/79.8-1)
现有的string表达式里,其他参数无法传入
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!