R2017aでパッケ​ージ化する際に、コン​パイルに不必要なファ​イルを「必要なファイ​ル」に自動選択されな​いようにするにはどう​すればよいですか?

64bit版R2017aを用いてGUIを含むアプリケーション開発を行っています。 アプリケーションでは同じディレクトリに存在する変更可能な設定データが入ったエクセルを読み込む処理を入れていますが、 パッケージ化の際に「必要なファイル」欄に自動選択されたエクセルを削除しても、再度自動選択されてしまい削除できません。 エクセルもパッケージ化してしまうと、データが変更された際に内容が読込まれないため、想定している使い方ができません。 そこで、自動選択を解除する方法または依存関係ファイルに含まれないようなコードの書き方を教えてください。

4 comentarios

Image Analyst
Image Analyst el 26 de Oct. de 2017
We develop application including GUI using 64bit version R2017a. In the application, processing to read Excel containing changeable setting data existing in the same directory is included, but even if automatically selected Excel is deleted in the "required file" field during packaging, it is selected and can not be deleted. If you also package Excel, content will not be read when the data is changed, so you can not use the expected usage. So, please tell me how to cancel automatic selection or how to write code that is not included in the dependency file.
michio
michio el 27 de Oct. de 2017
MATLAB Complier の「アプリケーションコンパイラ」アプリで作業されていますか?
Hidetaro Kayanuma
Hidetaro Kayanuma el 30 de Oct. de 2017
>michiho
はい、アプリを用いて作業をしています。
michio
michio el 30 de Oct. de 2017
コメントありがとうございます。

Iniciar sesión para comentar.

 Respuesta aceptada

michio
michio el 30 de Oct. de 2017

1 voto

に関連した質問がありますが、残念ながらエクセルファイルを同ディレクトリから削除してコンパイルするという方法しかなさそうです。
コンパイル後は、生成されたのexeを実行時に同じディレクトリ(もしくはプログラムで指定したディレクトリ)に読み込み対象のエクセルファイルがあれば意図された通りに動きます。

1 comentario

Hidetaro Kayanuma
Hidetaro Kayanuma el 31 de Oct. de 2017
回答ありがとうございます。
パスの通ったディレクトリからエクセルファイルを削除したら意図した通りにコンパイルできました。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 26 de Oct. de 2017

Comentada:

el 31 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!