Co existance of different Matlab Versions on the same system

4 visualizaciones (últimos 30 días)
Kamali
Kamali el 15 de Sept. de 2014
Editada: ES el 15 de Sept. de 2014
I have Matlab 2013a and 2014a installed on the same system. Both the versions are working perfectly fine when used from Matlab workspace. Now, in my application, I need to open Matlab command window from a c++ program, using the engine API. The application was working correctly until I installed Matlab 2014a. After that, the Matlab command prompt disappears after the call of engOpen() function. This is because the function returns NULL. Also, I do not see any clash in the include and library files.
I would like to know whether different Matlab versions can reside in a single machine where engine API calls are used??

Respuestas (1)

ES
ES el 15 de Sept. de 2014
Editada: ES el 15 de Sept. de 2014
Are you talking about COM interfaces?
In that case, when you have only one version of MATLAB it is enough to call
Dispatch("matlab.application")
but if you have multiple versions on the same machine, you have to include the major and minor version info.. For example,
Dispatch("matlab.application.7.13")
where 7.13 is corresponds to MATLAB R2010b

Categorías

Más información sobre Call MATLAB from C en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by