Questions tagged [engopen]

5 questions
8
votes
2 answers

Connect to Matlab engine from C in Linux

I'm trying to call the Matlab engine programatically from a C program on Linux (Matlab r2009a, Ubuntu 9.10). I've got my own code (which works in Windows), but for now I'm just trying to get the Matlab "engdemo.c" program to work on Linux. I have…
Drew Hall
  • 28,429
  • 12
  • 61
  • 81
1
vote
2 answers

engOpen returns Null

I'm having a problem when I try to call a Matlab funcion from my C++ code. When I call engOpen, it always returns NULL. Here is the code: Engine *m_pEngine; m_pEngine = engOpen(NULL); if(m_pEngine == NULL) { cout << "Error" << endl; …
Sara
  • 833
  • 2
  • 9
  • 21
1
vote
0 answers

Is it possible to run a 'C' binary which inside calls matlab functions?

I wrote a C program which opens the MATLAB using engOpen and evaluates some values in MATLAB. I successfully compiled that code by linking the required libraries. But, unfortunately while executing that binary i am getting error testEngOpen.exe has…
0
votes
1 answer

Fortran mwPointer error: "Unclassifiable statement"

I am trying to integrate to an existing Fortran code mycode.F a mwPointer. My mycode.F compiled correctly before any change I tried to make. Here's an extract: subroutine mycode(t1,t2,action,p1,p2,Q,flag) implicit none integer IZERO, IUN,…
elle.delle
  • 328
  • 3
  • 15
0
votes
1 answer

Fail to call Matlab engOpen from QT

I'm trying to involve matlab engine in QT creator. I am sure that I have set INCLUDEPATH and LIBS properly in the .pro file, since there is no grammar or linking problem. I added D:\Program Files\Matlab32\bin; D:\Program…