Conflict Matlab Linux and Windows

Hi,
I installed Matlab2020a for Windows and Matlab2018a for Linux.
I am running a software in Linux WSL which needs Matlab. The software has a Configuration.bash folder to export all the path: "export MATLABPATH=$STAMPS/matlab:`echo $MATLABPATH`".
The problem is that the software opens Matlab2020a (that for Windows) and not Matlab2018a (for Linux).
Do you know how to solve this problem?
Thank you

4 Comments

STAMPS is not a standard environment variable, so you can probably modify it to indicate the Linux version.
Thank you
Do you know how to change it?
Should I change "export MATLABPATH=$STAMPS/matlab:`echo $MATLABPATH`" in
export MATLABPATH=$STAMPS/matlab: usr/local/MATLAB/R2018a/bin"
MATLABPATH should affect the directories that MATLAB searches to find .m .p .slx and so on files, but should not affect where the MATLAB executable is picked up from, so I think we are headed in the wrong direction.
What are you invoking that ends up bringing Windows MATLAB instead of Linux MATLAB ?
Sorry if I bothered you but I found an error in my installation.
I have fixed the error now.
thank you anyway

Sign in to comment.

Answers (0)

Categories

Asked:

on 19 Jun 2020

Commented:

on 19 Jun 2020

Community Treasure Hunt

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

Start Hunting!