Calling 32-bit Matlab from 64-bit Matlab

4 Ansichten (letzte 30 Tage)
john
john am 24 Apr. 2012
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!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Apr. 2012
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 Kommentare
Walter Roberson
Walter Roberson am 24 Apr. 2012
If I recall correctly, fire up the 32 bit MATLAB version with the /register switch on the command line.
john
john am 26 Apr. 2012
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by