From: strawfly ? on 22 Mar 2010 11:18 Hello, I need to compile a matlab engine program in linux. When I successful compile the example program engdemo.c and run "!engdemo", I have the follow error message: /bin/bash: engdemo: command not found Alternatively, I run it in c shell and have the follow error message: matlab: Command not found. Can't start MATLAB engine Anyone can tell me the solution?
From: Randy Poe on 22 Mar 2010 11:57 "strawfly ?" <wangzi584(a)gmail.com> wrote in message <ho81nd$pn$1(a)fred.mathworks.com>... > Hello, > I need to compile a matlab engine program in linux. When I successful compile the example program engdemo.c and run "!engdemo", I have the follow error message: > > /bin/bash: engdemo: command not found > > Alternatively, I run it in c shell and have the follow error message: > > matlab: Command not found. > Can't start MATLAB engine > > Anyone can tell me the solution? Sounds like engdemo isn't in your search path. If you were in the directory where engdemo existed, then try this form: !./engdemo Unix won't run things in the current directory automatically unless you explicitly put "." in the search path. Just do a check with the "ls -ls" command to make sure that "engdemo" is where you think it is and has executable permission. Randy
|
Pages: 1 Prev: a simpler way for this sort of assignment? Next: arma/armax |