For various reasons I need to do things in 64 bit and 32 bit Matlab.
Much to my chagrin... I found out recently that settings for both 32 and 64 bit Matlab are both stored in the same folder:
C:\Users\$USERNAME\AppData\Roaming\MathWorks\MATLAB\$MATLAB_VERSION
Here is a simple thing that I try to do... and it fails because they share the same settings folder!:
I get an error in the 64 bit matlab... because !ARG! as soon as I change something in matlab 32 bit... it changes the same setting in Matlab 64 bit! In this case the setting is the C/C++ compiler.
Is there any way to have all your settings for Matlab 32 bit and 64 bit in separate folders?
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
Accepted AnswerIt is possible to have multiple MATLAB installations on the same computer. Be sure to install each version in a different directory.
Direct link to this comment As long as you think of it as two functions, there is no way to run it simultaneously in MATLAB. You need either to create one function or offload one function to another process/thread.
folder = prefdir returns the name of the preferences folder. The preferences folder contains preferences and settings for MATLAB® and related products, the command history file, MATLAB favorites files, and MATLAB desktop layout files.
Direct link to this answer For MATLAB 7.8 (R2009a) and later versions, you can determine this information by selecting the "Help>About MATLAB" Menu from the desktop.
You can change the location of the preferences directory using the MATLAB_PREFDIR
environment variables. Refer to this technical solution for a complete instructions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With