In GUI, I have a push button. I want that when this push button is pressed a text file which created before opens automatically without choosing a file..
显示 更早的评论
% I have a textfile which name is readme.txt Its directory: C//matlabcodes folder
%In GUI, I also have a push button. When I press this push button, I want to open "readme.txt" automatically.
thanks in advance
采纳的回答
更多回答(1 个)
Ilham Hardy
2013-7-11
In pushbutton callback:
open('C:\matlabcodes folder\readme.txt')
HTH, IH
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!