Calling 32-bit Matlab from 64-bit Matlab

5 vues (au cours des 30 derniers jours)
john
john le 24 Avr 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!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by