Undefined function or variable 'sim' in . NET assembly

2 ビュー (過去 30 日間)
mohd afwaan ahmed quadri
mohd afwaan ahmed quadri 2015 年 8 月 4 日
回答済み: Michael Kotthaus 2017 年 7 月 19 日
Hi, I was working on Simulink block in MATLAB. I executed that Simulink block using the statement 'sim' in MATLAB file. It works perfectly fine in MATLAB. But when I am trying to execute the same file in .Net Assembly, it gives an error "undefined function or variable 'sim'". Can anyone please help?
Thanks in advance

回答 (1 件)

Michael Kotthaus
Michael Kotthaus 2017 年 7 月 19 日
Dear MATLAB support team,
I noticed a similar issue after I have generated an executable with the deploytool in R2016b. If I start the Matlab script from the Command Window, everything works fine. If I start the generated application from a Windows cmd prompt, I get the following error message:
Undefined function or variable 'sim'.
What is the reason for this issue? Is is at all possible to include a Simulink model into a standalone application?
Thank your for any hints.

カテゴリ

Help Center および File ExchangeStandalone Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by