Thread Subject: Matlab Engine on another computer

Subject: Matlab Engine on another computer

From: badluck066@gmail.com

Date: 30 May, 2008 16:20:01

Message: 1 of 5

Is there a way to make a standalone application using the Matlab
Engine to work on another computer that doesn't have Matlab ?

if yes
What is neccessary to make it work ? DLL, anything ? thanks

if no
well thanks for the information


I am running Matlab 2008a On windows Xp sp2.
Using Visual Studio 2008, loading matlab engine from a c++ application.

Subject: Matlab Engine on another computer

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 30 May, 2008 16:22:18

Message: 2 of 5

In article <707bd891-8a0f-44ae-86a6-6b9148c1f7bd@m3g2000hsc.googlegroups.com>,
 <badluck066@gmail.com> wrote:
>Is there a way to make a standalone application using the Matlab
>Engine to work on another computer that doesn't have Matlab ?

Yes.

>if yes
>What is neccessary to make it work ? DLL, anything ? thanks

The optional (extra-cost) Mathworks product "Matlab Compiler".
http://www.mathworks.com/products/compiler/
--
  "Tired minds don't plan well. Sleep first, plan later."
                                              -- Walter Reisch

Subject: Matlab Engine on another computer

From: badluck066@gmail.com

Date: 30 May, 2008 16:27:13

Message: 3 of 5

Ok, so it won't work if i compile it directly from the visual studio,
thanks for the help.
Will look into this.

Subject: Matlab Engine on another computer

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 30 May, 2008 16:52:02

Message: 4 of 5

In article <861b4aa1-52bd-41d2-93d9-ce5516a9f4d5@y21g2000hsf.googlegroups.com>,
 <badluck066@gmail.com> wrote:
>Ok, so it won't work if i compile it directly from the visual studio,

Nope. If you were using Unix you could use engOpen() passing in the
hostname of the system that had Matlab. However, you are using Windows XP
and on MS Windows the startcmd argument must be NULL.

  On Windows systems, engOpen opens a COM channel to MATLAB. This
  starts the MATLAB software that was registered during installation.
  If you did not register during installation, on the command line you
  can enter the command:

  matlab /regserver


*Possibly* you would be able to register a remote matlab as a
"Remote Out-of Process Server" -- the documentation indicates that in
general Matlab supports such servers through COM objects, but I don't
know enough about the technology or how Matlab uses it to know whether
a you can link to a remote Matlab that way.

--
  "Walter is undoubtedly the country's and club's most popular player."
                                              -- vitalfootball.co.uk

Subject: Matlab Engine on another computer

From: badluck066@gmail.com

Date: 30 May, 2008 17:11:32

Message: 5 of 5

> matlab /regserver
>
> *Possibly* you would be able to register a remote matlab as a
> "Remote Out-of Process Server" -- the documentation indicates that in
> general Matlab supports such servers through COM objects, but I don't
> know enough about the technology or how Matlab uses it to know whether
> a you can link to a remote Matlab that way.
                              -- vitalfootball.co.uk

hmm so if i get it right :

To work, Matlab Engine absolutly need an installation of matlab
somewhere.
I probably can, connect to a matlab engine if i register it as a
"Remote Out-of Process Server" (I guess this will be slower)
Linux would be much simpler ( unfortunately i am stuck on widows )

Thanka lot for all the information.
You where very helpfull

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