Is it possible to request an input file in a deployed application?

1 回表示 (過去 30 日間)
Itai
Itai 2013 年 8 月 27 日
I have a program which asks the user for an input file and other parameters in order to work, such as: file_name=input('Enter the text file with the input and the output:','s')
When I deploy the program and try to run it, it fails and says that the file is missing and won't ask for it.
Is there a solution?
Thanks in advance,
Itai

採用された回答

Image Analyst
Image Analyst 2013 年 8 月 27 日
Use uigetfile() instead to guarantee that the user picks a file that actually does exist.

その他の回答 (2 件)

Itai
Itai 2013 年 8 月 27 日
Thanks. This helped, and now I can select the file, but I don't get the other user inputs the MATLAB script is asking for, such as: vti=input('Enter input treshold level: ');
Am I missing something?

Chetan Rawal
Chetan Rawal 2013 年 9 月 3 日
The neater way to do this will be through a UI since what you really want is user interaction. See http://www.mathworks.com/help/matlab/gui-building-basics.html
  1 件のコメント
Itai
Itai 2013 年 9 月 3 日
Thanks, that's eventually what I did.

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

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by