求解一个方程组 求知道。
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
mosam
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!