How to create a standalone application of a script that calls "sim" function ?

3 ビュー (過去 30 日間)
Petru-Daniel Morosan
Petru-Daniel Morosan 2016 年 10 月 25 日
編集済み: Marc Jakobi 2016 年 10 月 25 日
I have a script that calls teh "sim" function that executes a Simulink model, then there is a analyse of the results and some plots. I'd like to know how can I make this in a standalone executable that can be executed on a machine without Matlab installed.

回答 (2 件)

Marc Jakobi
Marc Jakobi 2016 年 10 月 25 日
編集済み: Marc Jakobi 2016 年 10 月 25 日
To create a standalone from a Simulink model, you will need the Simulink Coder. I don't think you will be able to call Simulink via sim() in a standalone.
You cannot call a Simulink model that has been deployed using Simulink Coder by calling the sim() function from within another standalone deployed using deploytool. You will have to call the Simulink executable from the Matlab GUI using a MEX interface .

Petru-Daniel Morosan
Petru-Daniel Morosan 2016 年 10 月 25 日
I have Matlab Coder and Simulink Coder. What I want to know is if it is possible to create a standalone executable of a Matlab script taht calls a Simulink model via sim().
  1 件のコメント
Marc Jakobi
Marc Jakobi 2016 年 10 月 25 日
I updated my answer.
P. S. please use the comment option to reply to answers.

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

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by