Solve function unable to compute algebraic system of equations
Afficher commentaires plus anciens
Hello, I am trying to solve this system of 4 equations using the solve function, however MATLAB is saying that it cannot find an explicit solution.
clc
clear all
%syms a b c d
syms ms1 mp1 ms2 mp2
g=9.8
isp1=290
isp2=320
for deltav1=5000 %%%guess
deltav2=9500-deltav1
e1=isp1*g*log((3000+ms1+mp1+ms2+mp2)/(3000+ms1+mp1+mp2))
e2=isp2*g*log((3000+ms2+mp2)/(3000+ms2))
e3=mp1/(ms1+mp1)
e4=mp2/(3000+ms2+mp2)
ans=solve(e1==deltav1, e2==deltav2, e3==0.9, e4==0.8)
end
There are four equations and four unknowns so I don't understand what the problem is. I am on MATLAB R2019B.
Any help or suggestions is greatly appreciated.
Réponse acceptée
Plus de réponses (1)
Andrew Nguyen
le 7 Avr 2023
0 votes
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!















