Calling 32-bit Matlab from 64-bit Matlab

6 visualizaciones (últimos 30 días)
john
john el 24 de Abr. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by