フィルターのクリア

When running an exe created from a matlab app, where are the variables stored?

2 ビュー (過去 30 日間)
Bradley
Bradley 2024 年 3 月 29 日
コメント済み: Bradley 2024 年 4 月 1 日
I cant really find an answer for this online. I wrote some code and used the Application Compiler to create an exe, when I plan to install on a computer that doesnt have matlab. When I click run and the program does its thing, where are the variables stored on that computer? My question really is do I need to allocate space for the variables or do I need to create some folder that the variables are temporarily stored in? Thanks!

採用された回答

Steven Lord
Steven Lord 2024 年 3 月 29 日
The variables are stored in the memory of the executable. Just like you don't need to allocate space for your web browser to store the text of this page (it will allocate the space it needs itself), you don't need to allocate any memory for the variables in the app executable yourself.

その他の回答 (1 件)

Image Analyst
Image Analyst 2024 年 3 月 29 日
Steve's answer is right. However if you have your program store variables to disk files in the "current" folder, you might face problems and need to understand the FAQ:

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by