首页 > 其他 > 详细

MATLAB默认工作目录设定

时间:2020-04-03 14:46:30      阅读:54      评论:0      收藏:0      [点我收藏+]

MATLAB启动后,自动执行的代码为

C:\Program Files\MATLAB\R2017b\toolbox\local\matlabrc.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\think\Documents\MATLAB

 

MATLAB默认工作目录设定

原文:https://www.cnblogs.com/YangGuangPu/p/12625298.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!