Converting a model to a function

I'm wondering if there is a way to convert a model to a function. I don't want to use simulink to graph, instead i would like to use MATLAB function to be able to graph. For example i want to convert this model ( http://www.mathworks.com/matlabcentral/fx_files/18812/1/AP.png) to an x and y function, so i would appreciate it if someone can help me with this.

1 个评论

Please post your simulink model. Your link is not showing a model, it's just a plot.

请先登录,再进行评论。

回答(1 个)

Andreas Goser
Andreas Goser 2012-12-21

0 个投票

There are some potential issues with the words you are using. Please lets make sure we are meaning the same.
A "function", is that a MATLAB function written in MATLAB code, or is the a mathematical description?
A "model", is this a Simulink model, or a set of mathematical descriptions like ODEs?
And the PNG file you linken, that is a plot of data. It is not a model. I might be the response of something int the sense of controls and that might end up in finding a model, but it may be something comepletely different.

类别

帮助中心File Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

产品

提问:

2012-12-21

Community Treasure Hunt

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

Start Hunting!

Translated by