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!

 Respuesta aceptada

Guy Rouleau
Guy Rouleau el 21 de En. de 2012

0 votos

2 comentarios

Joseph
Joseph el 21 de En. de 2012
Thanks, have you seen any references where a system of differential equations is explained?
Joseph
Joseph el 23 de En. de 2012
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!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Preguntada:

el 20 de En. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by