I want to use instances of Matlab Classes in a sumulink-model (inside a Matlab-Function). The only thing I found is this: http://www.mathworks.de/de/help/simulink/ug/simulink-data-class-extension-using-matlab-class-syntax.html But I don't know if this is what I'm looking for and also I can't get it running. (How can I add the Simulink.Parameter Class to the Matlab Search path?)
What I eventually want to do, is to implement a decisiontree, that gets certain values from my simulink model and decides, based on those, what to do next.

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 6 月 10 日

0 投票

The Simulink.Parameter class is already on the MATLAB path (it is added at the time of Simulink installation).
Assuming that you meant that you want to use a custom MATLAB class as part of a Simulink block, you may want to consider one of the available MATLAB Function blocks or MATLAB S-functions. I think either the Interpreted MATLAB Function block or the MATLAB S-function block would be most appropriate for you.

1 件のコメント

Aljoscha
Aljoscha 2013 年 6 月 11 日
Thank you! I Always tryed to use the fcn block, but the interpreted Matlab function was what I really needed. Thanks!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by