ode45 problem. error using * inner matrix dimensions must agree.
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a problem with using ode45.
When I use this command line:
[T, X] = ode45(@calc_Tdot, t_range, Tvec0);
I get an error which says 'error using *, inner matrix dimensions must agree'. Here t_range = 0:10000. Tvec0 is a column vector with a certain no. of entries. calc_Tdot is a function which has the expression for Tvec_dot = M\(Qvec-(U*Tvec0)). U is an n x n matrix where n = no of entries in Tvec0. M is also an n x n matrix.
Where am i going wrong in getting T and X?
I have checked the matrix dimensions. They are perfectly alright and it should be able to multiply them!
Please help, been stuck on this for a long long time!
Thank you!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!