Systems of Differential Equations

I have solved a system of differential equations in Matlab using the ODE45 solver. I would now like to put this system of differential equations into Simulink. Does anyone have any advice on how to do a block diagram for a system of differential equations? Here is my .m file for the system.
% System of Differential Equations
function dxdt = stika_electro(t,x)
global L R k_t k_b J_m B V_i F_f r_1
%Electromechanical Equations
dxdt(1)= x(2);
dxdt(2)= ((k_t)*x(3))/J_m -(F_f*r_1)/(J_m)-(B*x(2))/J_m;
dxdt(3)= ((-k_b)*x(2))/L-(R*x(3))/L+V_i/L;
dxdt=dxdt';
It is based off a system of equations for modeling DC Servomotors w/ a load.
Thanks!

 採用された回答

Guy Rouleau
Guy Rouleau 2012 年 1 月 21 日

0 投票

2 件のコメント

Joseph
Joseph 2012 年 1 月 21 日
Thanks, have you seen any references where a system of differential equations is explained?
Joseph
Joseph 2012 年 1 月 23 日
Nevermind! I was able to figure it out from this. Building a block diagram in Simulink already requires the user to write as a system of differential equations in order to build the block diagram. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by