Different Matlab Sessions

Hey, I'm using matlab both in my workplace and for my academic research. Currently, I'm using two Matlabs- one for work and one for research, so that in each one I have the relevant paths, command-history, and open m files in the editor. I wanted to ask- is there a better way? i want to use only one matlab, and have somekind of "session manager", that will enable me to go back and forth btwn "sessions" (defined by paths, command-history, open m files, maybe even editor-colors, etc..) Thank you

댓글 수: 3

Jan
Jan 2012년 3월 31일
Do you have two Matlab installations on one computer? While the paths, history and editor setup will be easy to implement, the license cannot be toggled easily and it requires a restart of Matlab.
Or do you work with two Matlab installations on different computers and want to carry one file on an USB stick from your workplace, which allows to reconstruct the current setup to the research computer?
David
David 2012년 4월 1일
Hi, I have two installations of two different versions. But I want to use only one installation, this is what the "session managing" is intended for.
Jan
Jan 2012년 4월 1일
Two installations on one or on two computers?

댓글을 달려면 로그인하십시오.

 채택된 답변

Ken Atwell
Ken Atwell 2012년 4월 1일

1 개 추천

You could accomplish this within one version of MATLAB by using different preferences setting folders for the two sessions. Session #1 would use one preference folder #1, and the session #2 would use preference folder #2. See:
It would be your responsibility to keep these session/preference pairs straight and to use them consistently. You may want to create a BAT file (Windows) or sh file (Linux, Mac) to set the environment variable and launch MATLAB as a single action to minimize the likelihood of making a forgetful error in the future.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 3월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by