Help with error: "??? Error using ==> minus. Matrix dimensions must agree. Error in ==> odenumjac at 148, Fdiff = Fdel - Fvalue(:,ones(1,ny));"
显示 更早的评论
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 个评论
Star Strider
2012-10-10
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
2012-10-10
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!