Problems running .exe from commant promt

4 visualizzazioni (ultimi 30 giorni)
Marlo Wegener
Marlo Wegener il 11 Mar 2016
Commentato: Marlo Wegener il 11 Mar 2016
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 Commento
per isakson
per isakson il 11 Mar 2016
Modificato: per isakson il 11 Mar 2016
Run the commands
which system -all
whos system
What do they say?

Accedi per commentare.

Risposte (1)

Jan
Jan il 11 Mar 2016
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)
  1 Commento
Marlo Wegener
Marlo Wegener il 11 Mar 2016
Thanks for the fast answer, you are right that system is declared in another script. Problem solved :).

Accedi per commentare.

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by