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

3 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by