Soliving system of ODEs written as function in simulink

조회 수: 1 (최근 30일)
Siddhesh Rane
Siddhesh Rane 2020년 2월 10일
댓글: Siddhesh Rane 2020년 2월 11일
I have a system of ODEs written as a function for e.g.
function dydt = vdp1(t,y)
dydt = [y(2); (1-y(1)^2)*y(2)-y(1)];
I am able to use ode45 function on command line to solve it.
How can I make simulink block from this function ?
I dont want to model the equations using basic simulink blocks as I have 11 large equations. I just want to make a block which takes system inputs as a function of time and gives value of "y".

채택된 답변

Jon
Jon 2020년 2월 10일
You should be able to define your dynamic model (system of ode's) using a Simulink S-function block.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by