Open a file according to text box value.

4 ビュー (過去 30 日間)
Sam Upeshala
Sam Upeshala 2018 年 12 月 12 日
コメント済み: Sam Upeshala 2018 年 12 月 12 日
In my matlab application I have a text box and a push button. when I enter "1" in the text box and click puch button, I want to open a one file and, when I enter "2" in the text box and click push button, I want to open another file. How can I do this?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2018 年 12 月 12 日
Why don't you make the push button to call [filename, pathname]=uigetfile() to select the file? Then you can use the text box to display the filename.
  1 件のコメント
Sam Upeshala
Sam Upeshala 2018 年 12 月 12 日
I want to open both files using one push button and, also I want to open one file at once.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by