About "system()" command in matlab

3 views (last 30 days)
Huseyin
Huseyin on 27 Feb 2014
Commented: Huseyin on 27 Feb 2014
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..

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 27 Feb 2014
folder='E:\matlab'
app='your_app'
system(fullfile(folder,app))

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!