求解一个方程组 求知道。
3 views (last 30 days)
Show older comments
clear
clc
ax=[6.4869 0];
ay=[0 -90.04];
az=[0 -128.39];
I1=ax+ay+az;
J=((ax-ay).^2+(ax-az).^2+(ay-az).^2)/6;
Lamda=1./sqrt(2.*J);
[a,b]=solve('a*J(1)/79.8^2+Lamda(1)*sqrt(J(1))/79.8+b*I1(1)/79.8-1=0','a*J2(2)/79.8^2+Lamda(2)*sqrt(J(2))/79.8+b*I1(2)/79.8-1=0');
就是一个很简单的方程组啊。。为何解不出a和b呢。。求帮助
0 Comments
Accepted Answer
mosam
on 23 Nov 2022
最后一句换成
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表达式里,其他参数无法传入
0 Comments
More Answers (0)
See Also
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!