matlab startup 示范,Startup file for MATLAB program

At startup time, MATLAB? automatically executes the file matlabrc.m. This function establishes the MATLAB path, sets the default figure size, and sets some uicontrol defaults.

On multiuser or networked systems, system administrators can put messages, definitions, or other code that applies to all users in theirmatlabrc.m file.

The file matlabrc.m invokes the startup.m file, if it exists on the search path MATLAB uses.

Individual users should use the startup.m file to customize MATLAB startup. The matlabrc.m file, located in thematlabroot/toolbox/local folder, is reserved for system administrators.

Examples

Turning Off the Figure Window Toolbar

If you do not want the toolbar to appear in the figure window, remove the comment marks from the following line in the matlabrc.m file, or create a similar line in your own startup.m file.

% set(0,'defaultfiguretoolbar','none')=======================================================================startupexecutes commands of your choosing when the MATLAB? program starts.

Create a startup.m file in your MATLAB Startup Folder and put in the file any commands you want executed at MATLAB startup. For example, your startup.m file might include physical constants, defaults for Handle Graphics? properties, engineering conversion factors, or anything else you want predefined in your workspace.

see also:(preferences)

http://www.mathworks.com/help/matlab/matlab_env/preferences.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值