How to efficiently pass input arguments to a compiled app?

12 ビュー (過去 30 日間)
Neuroesc
Neuroesc 2024 年 12 月 12 日 14:04
回答済み: Steven Lord 2024 年 12 月 12 日 15:11
I have created an app in AppDesigner. This app requires some input arguments, essentially some file names and quite a few parameters that I currently store in a struct.
When the app is still an .mlapp it is easy to pass input arguments using the "App Input Arguments" option and these can be any type of Matlab array. However, I want to compile the app into a standalone .exe and then call it using the 'system' command.
I don't have experience building programs outside Matlab, so I am not really sure how to get the input arguments to work after compiling, especially when there are many of them. I could save the parameters in a text file and give my .exe the filename of this as an input, then it could load all the parameters from there? Is there a better technique to this? Does anyone have some tips?

採用された回答

Steven Lord
Steven Lord 2024 年 12 月 12 日 15:11

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by