For various reasons, I need to do something in 64-bit and 32-bit Matlab.
To my great chagrin ... Recently, I found out that the settings for 32 and 64 bit Matlab are stored in one folder:
C:\Users\$USERNAME\AppData\Roaming\MathWorks\MATLAB\$MATLAB_VERSION
Here is a simple thing I'm trying to do ... and it fails because they have the same settings folder:
- open 32 bit matlab
- select 32-bit C / C ++ compiler
- compile code
- close matlab 32 bit
- open 64 bit matlab bit
- compile the same code
- ERROR ... your compiler is not 64 bits ...
I get an error in a 64-bit matrix ... because! ARG! as soon as I change something in the 32-bit matrix ... it changes the same setting to 64-bit Matlab bit! In this case, this parameter is a C / C ++ compiler.
Is there a way to have all your settings for 32-bit and 64-bit Matlab bits in separate folders?
- If so, how?
- If not, using the same settings folder is there a workaround for this particular parameter (does compopts.bat store the selected C / C ++ compiler)?
Here is an example of what I would like to have:
C:\Users\$USERNAME\AppData\Roaming\MathWorks\MATLAB\$MATLAB_VERSION\32bit C:\Users\$USERNAME\AppData\Roaming\MathWorks\MATLAB\$MATLAB_VERSION\64bit
Trevor boyd smith
source share