Creating mexw32 Files From 64-bit Matlab

I maintain a large block library for others to use. I recently upgraded to 64-bit windows and Matlab. Obviously I needed to recompile all of my library S-functions into mexw64 files in order for me to use them. However, I now need to provide BOTH mexw32 and mexw64 files for various users on both systems. Is there any way to generate mexw32 files on a 64-bit machine running 64-bit Matlab?

 Accepted Answer

Shashank Prasanna
Shashank Prasanna on 30 Jan 2013
Edited: Shashank Prasanna on 30 Jan 2013
I am afraid not. You can however simply keep a 32-Bit installation of MATLAB on the same machine 64-bit windows machine, just to generate the 32-bit mex files. As long as you have a license, you can download any version and any 'bit' matlab.

1 Comment

In MATLAB it did eventually become possible, a few releases before 32 bit stopped being supported.

Sign in to comment.

More Answers (1)

mofra
mofra on 18 Apr 2020
is there no way to do it as for 2020? (useing codegen)

1 Comment

32 bit Windows is not supported for MATLAB Compiler . Possibly if you were using MATLAB Coder you could target 32 with appropriate tool chain choices.

Sign in to comment.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!