Soliving system of ODEs written as function in simulink

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".

 Accepted Answer

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 10 Feb 2020

Commented:

on 11 Feb 2020

Community Treasure Hunt

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

Start Hunting!