Why do I get the error message "Unrecognized function or variable 'sim'" in my Standalone Excecutable

2 ビュー (過去 30 日間)
I can get a Standalone Executable to work with a simple fprintf statement called from a matlab script. But as soon as a I add a call to a Simulink program:
sim('simulink_test.slx');
I get the error: "Unrecognized function or variable 'sim'". If I run the script from the command window, it works fine.
Not as critical, but I always seem to get the warning "MATLAB:mpath:PathAlterationNotSupported" warning as well.

採用された回答

Walter Roberson
Walter Roberson 2023 年 3 月 23 日

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by