フィルターのクリア

How to include and read data from sub-folders when creating a standalone application?

3 ビュー (過去 30 日間)
Xin Liu
Xin Liu 2022 年 11 月 5 日
コメント済み: Xin Liu 2022 年 11 月 5 日
Hello everyone,
I am creating an .exe program using the App Designer.
In the startup function, I write
I = imread('./Resources/icons/Eye.png');
figure;
imagesc(I);
In addition, I have included the 'Resource' folder and 'Eye.png' in the Application Compiler. However, when I run the .exe programm, it fails to read this file and cause error.
  5 件のコメント
Xin Liu
Xin Liu 2022 年 11 月 5 日
OK. Got it. Thanks very much.
Xin Liu
Xin Liu 2022 年 11 月 5 日
I found that I can include the folder in the 'Files installed for your end user', and use pwd + relative path to realize this function.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by