📄 matlabrc.m
字号:
%MATLABRC Master startup M-file.%% 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.% Copyright (c) 1984-93 by the MathWorks, Inc.% Display helpful hints.disp('Commands to get started: intro, demo, help help')disp('Commands for more information: help, whatsnew, info, subscribe')disp(' ')% Set the default figure position, in pixels.% On small screens, make figure smaller, with same aspect ratio.screen = get(0, 'ScreenSize');width = screen(3);height = screen(4);if height >= 500 mwwidth = 560; mwheight = 420;else mwwidth = 500; mwheight = 375;endleft = (width-mwwidth)/2;bottom = height-mwheight-60;rect = [ left bottom mwwidth mwheight ];set(0, 'defaultfigureposition',rect);% Make uicontrols, uimenus and lines look better on monochrome displays.if get(0,'ScreenDepth')==1, set(0,'DefaultUIControlBackgroundColor','white'); set(0,'DefaultUIMenuBackgroundColor','white'); set(0,'DefaultAxesLineStyleOrder','-|--|:|-.') set(0,'DefaultAxesColorOrder',[1 1 1]);end% Clean up work space.clear screen width height mwwidth mwheight left bottom rectflops(0);matlabpath([...matlabroot '\toolbox\local;',...matlabroot '\toolbox\matlab\datafun;',...matlabroot '\toolbox\matlab\elfun;',...matlabroot '\toolbox\matlab\elmat;',...matlabroot '\toolbox\matlab\funfun;',...matlabroot '\toolbox\matlab\general;',...matlabroot '\toolbox\matlab\color;',...matlabroot '\toolbox\matlab\graphics;',...matlabroot '\toolbox\matlab\iofun;',...matlabroot '\toolbox\matlab\lang;',...matlabroot '\toolbox\matlab\matfun;',...matlabroot '\toolbox\matlab\ops;',...matlabroot '\toolbox\matlab\plotxy;',...matlabroot '\toolbox\matlab\plotxyz;',...matlabroot '\toolbox\matlab\polyfun;',...matlabroot '\toolbox\matlab\sounds;',...matlabroot '\toolbox\matlab\sparfun;',...matlabroot '\toolbox\matlab\specfun;',...matlabroot '\toolbox\matlab\specmat;',...matlabroot '\toolbox\matlab\strfun;',...matlabroot '\toolbox\matlab\dde;',...matlabroot '\toolbox\matlab\demos;',...matlabroot '\toolbox\comm\comm;',...matlabroot '\toolbox\comm\commsfun;',...matlabroot '\toolbox\comm\commsim;',...matlabroot '\toolbox\wavelet\wavelet;',...matlabroot '\toolbox\wavelet\wavedemo;',...matlabroot '\toolbox\pde;',...matlabroot '\toolbox\finance\finance;',...matlabroot '\toolbox\finance\calendar;',...matlabroot '\toolbox\finance\demo;',...matlabroot '\toolbox\lmi\lmictrl;',...matlabroot '\toolbox\lmi\lmilab;',...matlabroot '\toolbox\qft\qft;',...matlabroot '\toolbox\qft\qftdemos;',...matlabroot '\toolbox\fixpoint;',...matlabroot '\toolbox\dspblks;',...matlabroot '\toolbox\fuzzy\fuzzy;',...matlabroot '\toolbox\fuzzy\fuzdemos;',...matlabroot '\toolbox\mpc\mpccmds;',...matlabroot '\toolbox\mpc\mpcdemos;',...matlabroot '\toolbox\fdident\fdident;',...matlabroot '\toolbox\fdident\fddemos;',...matlabroot '\toolbox\hosa\hosa;',...matlabroot '\toolbox\hosa\hosademo;',...matlabroot '\toolbox\stats;',...matlabroot '\toolbox\ncd;',...matlabroot '\toolbox\images;',...matlabroot '\toolbox\nnet\nnet;',...matlabroot '\toolbox\nnet\nndemos;',...matlabroot '\toolbox\mutools\commands;',...matlabroot '\toolbox\mutools\subs;',...matlabroot '\toolbox\signal;',...matlabroot '\toolbox\splines;',...matlabroot '\toolbox\optim;',...matlabroot '\toolbox\robust;',...matlabroot '\toolbox\ident;',...matlabroot '\toolbox\control;',...matlabroot '\toolbox\codegen;',...matlabroot '\toolbox\simulink\simulink;',...matlabroot '\toolbox\simulink\blocks;',...matlabroot '\toolbox\simulink\simdemos;',...matlabroot '\toolbox\simulink\sb2sl;',...]);% Execute startup M-file, if it exists.if exist('startup') startupend% Load ACSL exchange file, if it exists.if exist('acsl_matlab.tmp') load acsl_matlab.tmp -mat delete acsl_matlab.tmpend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -