On 29/09/10 9:40 AM, james han wrote:
> i just have a simple questions, whenver i install matlab i need to spend
> some time to make the program of my own styles like....color, fonts,
> shortcuts...
>
> i'm just wondering is there any way to backup those settings so that i
> can use it again next time i install it?
At the matlab command prompt, tell it to display the "prefdir" variable.
The result will be a directory name. Look in that directory and you will
find at least one of matlab.prf (a text file) or matlabpref.mat (a
matlab binary file). It appears to me that matlab.prf is the newer
mechanism, but I am not certain.
PS:
C:\Documents and Settings\[User name]\Application Data\MathWorks\MATLAB\R14
下有两个文件
matlab.prf --- 这个是背景色,字体等等的设定保存文件
MATLABDesktop.xml --- 是Matlab主窗口的布局设置保存文件
history.m --- 是Command的历史文件
cwdhistory.m --- 是文件路径的历史文件
重新装MATLAB时主要把前两个文件备份了就OK了
还有就是自己安装的一些函数库要备份一下,(待继。。。。)
没有评论:
发表评论