Problems running .exe from commant promt
1 次查看(过去 30 天)
显示 更早的评论
Hello, I want to use to run an .exe file from a location, e.g. 'C:\work\programs\api_32bit\bin\x86\Debug\TestAPI32.exe' by using system commands below:
apiLocation = 'C:\work\programs\api_32bit\bin\x86\Debug\TestAPI32.exe';
system(apiLocation);
When I press enter I get the error message 'Index exceeds matrix dimensions'. Can anyone help me to solve this problem?
1 个评论
per isakson
2016-3-11
编辑:per isakson
2016-3-11
Run the commands
which system -all
whos system
What do they say?
回答(1 个)
Jan
2016-3-11
As per isakson has posted already: "system" is a variable, which shadows the built-in command. Either avoid to define "system" as a variable, or clear it, or use:
builtin('system', apiLocation)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!