Calling 32-bit Matlab from 64-bit Matlab

6 次查看(过去 30 天)
I just made the switch over to 64-bit Matlab and there was one function I was not able to convert over that only works on 32-bit Matlab.
Is there a way, from within Matlab 64-bit, to open up a Matlab 32-bit automation process, run my function that way and then return the result back to Matlab 64-bit??
I know this is kind of a roundabout way of accomplishing what I need to do, but it would be extremely helpful if it were possible. Thanks!

采纳的回答

Walter Roberson
Walter Roberson 2012-4-24
If you are using MS Windows, then register the 32 bit version of MATLAB as the automation server (which will also end up registering that version as being associated with the file extensions.) Fire up the 64 bit version and use an activex() object to connect to MATLAB: what you reach will be the 32 bit version.
Out of curiosity, what were you unable to convert?
  3 个评论
Walter Roberson
Walter Roberson 2012-4-24
If I recall correctly, fire up the 32 bit MATLAB version with the /register switch on the command line.
john
john 2012-4-26
I was able to successfully register the 32-bit version as the default version using the instructions found here:
http://www.mathworks.com/help/techdoc/matlab_external/f64299.html
After some testing, it looks like no matter what when you launch a matlab automation from a 64-bit matlab it opens a 64-bit matlab automation server and vice-versa for 32-bit matlab.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by