Matrix and solve command, Why this is not working please help me.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
safak kalemkus
el 15 de En. de 2021
Comentada: safak kalemkus
el 15 de En. de 2021
syms u2 u3
A = [1.6 -0.4;-0.4 0.4];
B = [u2;u3];
C = [0;20000];
eqn = A*B == C;
S = solve(eqn,u2) %or S = vpasolve(eqn,u2)
0 comentarios
Respuesta aceptada
Walter Roberson
el 15 de En. de 2021
You asked to solve two equations for a single variable. Except in some cases involving inequalities, you should ask to solve with respect to the same number of variables as there are equations, or else leave out the list of variables to solve for in order to solve for them all (which is only recommended if the number of variables and equations is the same.)
syms u2 u3
A = [1.6 -0.4;-0.4 0.4];
B = [u2;u3];
C = [0;20000];
eqn = A*B == C;
S = solve(eqn)
S.u2
S.u3
Más respuestas (0)
Ver también
Categorías
Más información sobre Calculus 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!