Solve function unable to compute algebraic system of equations
Show older comments
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.
Accepted Answer
More Answers (1)
Andrew Nguyen
on 7 Apr 2023
0 votes
Categories
Find more on Equation Solving 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!














