Solving a coupled ODE in Matlab using matrices

조회 수: 12 (최근 30일)
Peter
Peter 2012년 3월 21일
Hi,
I have a system of coupled differential equations that I am trying to solve in matlab. The number of equations can range between 6 and 600, so I decided to use matrices.
Essentially, what I am trying to solve is:
dx/dt+Ax=B
Where: - X is a 600x1 vector - A is a 600x600 matrix, and - B is a 600x1 vector
I have written a matlab program to input the matrices A and B, and then attempted to use ode23 to solve f=B-A*x, however it is telling me it will take millions of years to solve.
Please let me know if you require any more information.
Any help is greatly appreciated.
Cheers, Peter

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by