Is it possible to do something like this
---- -------
--->|+ |------->| 1/s |-----o--------->
| -| | | |
---- ------- |
/|\ |
--------------------
in a matlab ode m-file without the usage of simulink? And if it is possible how is it done? Maybe someone has got a code snippet of something that works this way?
Short answer: yes it's possible, but nobody's going to do it for you. The steps would be:
dy/dt = f(t,y)
and write it as a MATLAB functionode
solvers, e.g. ode45
(there are plenty of examples on the documentation page)EDIT
As I said it doesn't get much easier than this...