Problems running .exe from commant promt

조회 수: 5 (최근 30일)
Marlo Wegener
Marlo Wegener 2016년 3월 11일
댓글: Marlo Wegener 2016년 3월 11일
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
per isakson 2016년 3월 11일
편집: per isakson 2016년 3월 11일
Run the commands
which system -all
whos system
What do they say?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
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)
  댓글 수: 1
Marlo Wegener
Marlo Wegener 2016년 3월 11일
Thanks for the fast answer, you are right that system is declared in another script. Problem solved :).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by