How do I solve a matrix of ODE equations?

2 ビュー (過去 30 日間)
David Cole
David Cole 2025 年 2 月 25 日
移動済み: Torsten 2025 年 2 月 25 日
I have developed some Simulink code that displays the primary and secondary (referred to the primary) current on a scope. The results are as expected.
I used Faraday's Law and Flux Linkage equations to determine the equations and block flows.
Instead of using the block flow method shown above, I would like to solve this problem using the matrix of ODE equations shown below. How would I utilize this matrix below to simulantenously solve my two differential equations. Utilimately, I will have six equations. If I can solve just the two equations first I can match the answer with the code above to ensure I get the correct answer. The dash above the variables in the second row means referred, it does not mean derivative.

回答 (1 件)

Torsten
Torsten 2025 年 2 月 25 日
移動済み: Torsten 2025 年 2 月 25 日
Your system reads
M*dz/dt + F*z = R
or
dz/dt = inv(M)*(R-F*z)
It should be easy to solve using "ode45", e.g.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by