求解一个方程组 求知道。
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
mosam
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!