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

adding a fileadding a file to current directory through gui

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

Best Answer

[file,path] = uigetfile('*.m','Choose file to save');
copyfile([path file], pwd)
Related Question