求解一个方程组 求知道。

6 次查看(过去 30 天)
ginaha
ginaha 2022-11-23
回答: mosam 2022-11-23
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呢。。求帮助

采纳的回答

mosam
mosam 2022-11-23
最后一句换成
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 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!