How to convert a model than can be run with simulink to a function?

Hello, I have a model that I would like to convert it into a function. The current model can be graphed or expressed via simulink but I would like to know if there is a way that I can convert it into x and y function so that it can be graphed via MATLAB directly.

Answers (1)

Yes it's possible to make a script that do what your model is doing. You have to know the mathematical model of your system, there many tools in Matlab that can resolve several mathematical problems.

2 Comments

Ok. May I know what do you exactly mean by "know the mathematical model"?? I mean when I double click for instance on Vm_(mV) iNaf_(pA), I get the math that was used inside. So am I on the right path that you are talking about??
I mean the relations between outputs and inputs

This question is closed.

Asked:

on 5 Apr 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!