How do I open a file after pressing the OK button in a dialog box?
3 次查看(过去 30 天)
显示 更早的评论
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
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!