MATLAB默认工作目录设定
Posted yangguangpu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MATLAB默认工作目录设定相关的知识,希望对你有一定的参考价值。
MATLAB启动后,自动执行的代码为
C:Program FilesMATLABR2017b oolboxlocalmatlabrc.m
MATLAB对这个脚本的描述:
%MATLABRC Master startup MATLAB script. % MATLABRC is automatically executed by MATLAB during startup. % It establishes the MATLAB path, sets the default figure size, % and sets a few uicontrol defaults. % % On multi-user or networked systems, the system manager can put % any messages, definitions, etc. that apply to all users here. % % MATLABRC also invokes a STARTUP command if the file ‘startup.m‘ % exists on the MATLAB path.
要想改变默认工作目录,给这个脚本追加一个cd操作:
cd C:Users hinkDocumentsMATLAB
以上是关于MATLAB默认工作目录设定的主要内容,如果未能解决你的问题,请参考以下文章