?? set_my_path.m
字號:
%%%%%%%%%%%%%%% set_my_path.m %%%%%%%%%%%%%%%%%%%
% Discrete-Time Control Problems using %
% MATLAB and the Control System Toolbox %
% by J.H. Chow, D.K. Frederick, & N.W. Chbat %
% Brooks/Cole Publishing Company %
% September 2002 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------- get present location of top-level directory ----
here = pwd
%--- if PC, use backward slash; if Unix or Linux, use forward version --
if ispc,
addpath([here,'\tools'])
addpath([here,'\models'])
disp('Have added models and tools directories to Matlab path')
disp('You can use the ''path'' command to verify it')
elseif isunix,
addpath([here,'/tools'])
addpath([here,'/models'])
disp('Have added models and tools directories to Matlab path')
disp('You can use the ''path'' command to verify it')
else
disp('Platform is not PC and not Unix/Linux, so you must')
disp('set the Matlab path manually to include the ')
disp('directories ''/models'' and ''/tools''')
end
%%%%%%%%%%%%%
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -