How do I open a file after pressing the OK button in a dialog box?

3 ビュー (過去 30 日間)
Daiana Tudose
Daiana Tudose 2019 年 8 月 7 日
コメント済み: Daiana Tudose 2019 年 8 月 7 日
Hello all,
I want to open a text file after pressing the OK button in a message box, but I do not know how to do that.
I tried with a switch code, but it did not work.
If you know how to do that, please tell me.
Thank you !
  2 件のコメント
Adam
Adam 2019 年 8 月 7 日
Where is the file coming from? Why is it any different opening it after clicking an OK button to doing it anywhere else? If it is a message box I assume you don't mean uigetfile that returns a filename?
Daiana Tudose
Daiana Tudose 2019 年 8 月 7 日
The file is a .txt that states the date and time of any block change in a Simulink model. If there is a change, a dialog box appears and after the user clicks the OK button I would like to open instantly the log file.

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by