plot function in Simulink

15 ビュー (過去 30 日間)
Davy Marinier
Davy Marinier 2015 年 8 月 3 日
回答済み: Sebastian Castro 2015 年 8 月 3 日
Can I use, if it exists, a plot function in Simulink ? I would display a 3D graphic plotter. Thanks

回答 (1 件)

Sebastian Castro
Sebastian Castro 2015 年 8 月 3 日
You can use the regular "plot" function inside a Simulink model by calling it inside a MATLAB Function block.
... with one caveat. You have to declare it as extrinsic so that MATLAB calls the function using the interpreter instead of by trying to compile it. Therefore, this will only plot if you're running the simulation on your computer (and not if you plan on generating code from the model).
The documentation has this example right here (just replace the "patch" function with "plot"): http://www.mathworks.com/help/simulink/ug/calling-matlab-functions.html#bru21fv
- Sebastian

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by