How can I select a .m file through browser push button option in GUI and add/save that file in my current Matlab working directory ? Any guidance is appreciated.TIA

2 次查看(过去 30 天)
Need to add a .m file to the current working directory by selecting through the browse push button and add that file to the current working directory

采纳的回答

Nobel Mondal
Nobel Mondal 2015-5-27
[file,path] = uigetfile('*.m','Choose file to save');
copyfile([path file], pwd)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by