Thread Subject: error message while running engdemo in linux

Subject: error message while running engdemo in linux

From: strawfly ?

Date: 22 Mar, 2010 15:18:05

Message: 1 of 2

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?

Subject: error message while running engdemo in linux

From: Randy Poe

Date: 22 Mar, 2010 15:57:05

Message: 2 of 2

"strawfly ?" <wangzi584@gmail.com> wrote in message <ho81nd$pn$1@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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com