DAE Error using mupadengine/feval_internal Expecting as many equations as variables.
Ältere Kommentare anzeigen
I have a set of 15 equations:
eqns = [eqn1, eqn2, eqn3, eqn4, eqn5, eqn6, eqn7, eqn8, eqn9, eqn10, eqn11, eqn12, eqn13, eqn14, eqn15];
I also have 15 variables, which are used in the equations:
p_vars = [p1(t); p2(t); p3(t); p4(t); p5(t); p6(t)];
q_vars = [q1(t); q2(t); q3(t); q4(t); q5(t); q6(t); q7(t); q8(t); q9(t)];
vars = [q_vars; p_vars]
Using isLowIndexDAE returned 0 so I decided to run reduceDAEIndex:
[newEqns, newVars, ~, oldIndex] = reduceDAEIndex(h_eqns, vars)
However it gives me an error, saying "Expecting as many equations as variables". This confuses me because it seems that there obviously are as many equations as variables.
Does anyone know why this is happening?
2 Kommentare
Torsten
am 3 Jan. 2024
Does anyone know why this is happening?
We must see your code to reproduce the problem.
Phoebe Sayer
am 3 Jan. 2024
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!









