firstrun.m

来自「MATLAB在飞行动力学和控制中应用的工具」· M 代码 · 共 34 行

M
34
字号
% FIRSTRUN is an initialization macro for floppy-disk distributions of
% the FDC toolbox. It must be run the first time the toolbox is used.
%
% Note: not applicable for the FDC packages distributed via Internet!

fdcrootdir = fullfile(matlabroot,'TOOLBOX','FDC13');
if exist(fdcroot) ~= 7
   errordlg('Can''t find FDC root-directory!');
else
   chdir fdcroot;
end

clc;
disp(' ');
disp(' FDC setup');
disp(' =========');
disp(' The FDC root-directory must be added to your Matlabpath.');
disp(' To do so, EDITPATH will be started after you press a key.');
disp([' Add the folder ',fdcrootdir,' to the Matlabpath']);
disp(' and make sure the results are saved for future sessions.');
disp(' ');
disp('<<< Press a key to proceed >>>');

% Call path-edit tool EDITPATH
pause
editpath

clc;
disp('   Complete the FDC setup by running FDC or FDCINIT');

% -----------------------------------------------------------------------------
% The FDC toolbox. Copyright Marc Rauw, 1994-2000.
% Last revision of this program: February 7, 1998.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?