Creation of a standalone executable app

Hello all,
I have created an application in Matlab App Designer and now I want to save it as a standlone executable app.
The application is based on Matlab code but it uses Simulink models to run.
Is the creation of a standlone app possible with this structure?
Thank you in advance for your help.
Kind regards,
Panagiotis

回答 (1 件)

Steven Lord
Steven Lord 2025 年 5 月 13 日

0 投票

You will need to use Simulink Coder (product information page) for that workflow. See the Simulink Coder documentation for more information on how to use this product.

2 件のコメント

PanPan
PanPan 2025 年 5 月 14 日
移動済み: Steven Lord 2025 年 5 月 14 日
Couldn't i do it via Simulink Compiler?
What I want to achieve is to use the simulink model inside the .exe GUI. I don't want to have a seperate .exe file just for the Simulink model simulation.
Here's a small part of the code I use to compile the Simulink model but I cannot get it to work. Any suggestions?
modelPath = fullfile(ctfroot, 'modellapp.slx');
% Create a SimulationInput object
in = Simulink.SimulationInput(modelPath);
% Set all required variables into the input
in = in.setVariable('Cd', Cd);
%%% MORE VARIABLES HERE
% Simulate
in = simulink.compiler.configureForDeployment(in);
out = sim(in);
Steven Lord
Steven Lord 2025 年 5 月 14 日
Yes, my apologies. I saw "standalone executable" and my mind first jumped to code generation with Simulink Coder, but app deployment with Simulink Compiler ought to be possible as well. I have not used Simulink Compiler myself, but I did see an example in the documentation of creating an App Designer app that calls a Simulink model and deploys that app. I recommend working through that example and adapting it to your application.

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

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

リリース

R2024b

質問済み:

2025 年 5 月 13 日

コメント済み:

2025 年 5 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by