MATLAB: Can .exe file compiled on 32bit computer with 64bit Matlab run on 64bit computer

MATLAB Compiler

If a 64bit Matlab was installed on the computer having a 32bit operation system. The Matlab GUI/script is deployed on that computer to create .exe file.
My question is:
Can this .exe file run on another computer having a 64bit operation system? So it can take the advantage of 'unlimited memory size' on 64bit computer.
Thanks

Best Answer

You cannot install 64 bit MATLAB on a 32 bit operating system.
If you compile on a 32 bit MATLAB and install on a 64 bit operating system, that will work but only as a 32 bit executable; it will not act as a 64 bit program.
Related Question