Co existance of different Matlab Versions on the same system

4 ビュー (過去 30 日間)
Kamali
Kamali 2014 年 9 月 15 日
編集済み: ES 2014 年 9 月 15 日
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??

回答 (1 件)

ES
ES 2014 年 9 月 15 日
編集済み: ES 2014 年 9 月 15 日
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

カテゴリ

Help Center および File ExchangeCall MATLAB from C についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by