Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use matlab engine,its functions in a machine W/O matlab install

Status
Not open for further replies.

saro64

Computer
Joined
Sep 18, 2006
Messages
4
Location
DE
Hi,

I tried to use matlab from my vc++ program. I have included the header files necessary for MATLAB. i have also included the libraries for MATLAB in linker settings.


#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "engine.h"
int main()

{
Engine *ep;

if (!(ep = engOpen("\0"))) {
fprintf(stderr, "\nCan't start MATLAB engine\n");
return 0;
}
}


In my machine i have matlab version 6.5 instaleld. and i can start the matlab engine successfully and the pointer 'ep' has some valid address. But when i use the same project in a machine with out Matlab installation , I get the message 'cannot start matlab engine' and 'ep' is NULL (but i have copied the header files and libs and dlls for matlab in this machine).

So, my question is how to use the matlab engine and its functions in a machine with out matlab installation?.

What are the possibilities to use the matlab functions without actualling installing it?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top