From: strawfly ? on
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
"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