Borrar filtros
Borrar filtros

How to solve these 4 equations

1 visualización (últimos 30 días)
Yoshi
Yoshi el 22 de En. de 2016
Respondida: Star Strider el 22 de En. de 2016
Hello, I'm trying to solve these set of 4 equations and am unsure how to write them up in matlab. So far this is what I've tried with no luck:
syms a b c d
e1=a+d==1;
e2=2*a+b+2*c+d==5;
e3=2*b==2;
e4=(d/(a+b+c+d))^2*(c/(a+b+c+d))/(a/(a+b+c+d))==exp(-2.222)/5;
[e1,e2,e3,e4] = solve(e1, e2, e3, e4);
I am very much a beginner at Matlab for reference so am unsure how to solve this besides pressing the run key.

Respuesta aceptada

Star Strider
Star Strider el 22 de En. de 2016
I would use the vpasolve function to get a numeric result:
[a,b,c,d] = vpasolve([e1, e2, e3, e4], [a,b,c,d]);

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by