MATLAB: About “system()” command in matlab

commandguisystem

Hello, When I use "system()" command in matlab, it runs only the files in "Matlab/bin/" directory. But I want to run a file which is on desktop or in any other specific folder. How can I do that? Thanks..

Best Answer

folder='E:\matlab'
app='your_app'
system(fullfile(folder,app))