Why am I getting the message "system inconsistent" when I know that it is not?
4 次查看(过去 30 天)
显示 更早的评论
I am solving a system of 16 equations with 16 unknowns that has a known solution. My code looks like this:
R = ones(24,1);
V_ext =1;
syms V11 V12 V13 V14 V21 V22 V23 V24 V31 V32 V33 V34 V41 V42 V43 V44
eqn1 = (V11 - V12)/R(1)== -(V11 - V21)/R(4);
.......
[Coef,I] = equationsToMatrix([eqn1, eqn2, eqn3, eqn4, eqn5, eqn6, eqn7,...
eqn8, eqn9, eqn10, eqn11, eqn12, eqn13, eqn14, eqn15, eqn16] , [V11....
V12 V13 V14 V21 V22 V23 V24 V31 V32 V33 V34 V41 V42 V43 V44])
Voltage = linsolve(Coef,I)
(I have omitted the other 15 equations). The coefficient matrix is generated without any problems, but I am getting the message "Solution does not exist because the system is inconsistent.
In symengine
In sym/privBinaryOp (line 1032)
In sym/linsolve (line 63)".
I am puzzled because I have solved larger systems using very similar code.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!