Solve system of equations using numeric substitutions
Show older comments
I have a system of 4 equations with 9 variables, 6 of which are known. Obviously this is enough information to find a single, exact solution for the variable I'm looking for but for the life of me I can't figure out MATLAB's complex syntax between numerical, symbolic, polynomial, etc solvers to just set the variables plug the equations into each other and solve for a specific variable. I'm trying to learn how to do this so I can start putting in large sets of complex equations and solve for a given variable without having to manually rearrange and plug and chug. Can someone help me figure out how to solve for "r_fit" here? This is my attempt at setting up everything in preparation to tell MATLAB to solve for r_fit but I'm getting confused between the different solvers' syntax.
c = 34500;
f_p = 190;
V_b = 86;
L_eff = 7.24;
D_min = 1;
A_min = pi*(D_min/2)^2;
syms r_fit A_eff L_act
e1 = A_eff == A_min*(1+0.576*L_act/(2*r_fit));
e2 = L_eff == L_act + D_min;
e3 = A_min == pi*(D_min/2)^2;
e4 = f_p == (c/(2*pi))*sqrt(A_eff/(L_eff*V_b));
Accepted Answer
More Answers (0)
Categories
Find more on Code Performance 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!