Help with error: "??? Error using ==> minus. Matrix dimensions must agree. Error in ==> odenumjac at 148, Fdiff = Fdel - Fvalue(:,ones(1,ny));"
Show older comments
Hello, I'm trying to use matlab to solve a differential algebraic system of equations (DAE), without luck. I'm trying to follow the hb1dae example but encounter this error message: "??? Error using ==> minus. Matrix dimensions must agree. Error in ==> odenumjac at 148, Fdiff = Fdel - Fvalue(:,ones(1,ny));"
Any advice on how to proceed?
2 Comments
Star Strider
on 10 Oct 2012
It would probably help if you posted the relevant parts of your code.
Specifically, what are the sizes of Fdel and Fvalue and what is the value of ny?
Colin
on 10 Oct 2012
Answers (0)
Categories
Find more on Ordinary Differential Equations 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!