ncstartup.m

来自「MATLAB中读写、处理科学数据文件格式NETCDF的程序」· M 代码 · 共 33 行

M
33
字号
function ncstartup

% ncstartup -- Startup script for the NetCDF Toolbox.
%  ncstartup (no argument) adjusts the Matlab path
%   to include the components of the NetCDF Toolbox.
%
%   A call to this "ncstartup" script should be made
%   during Matlab startup, such as from within the
%   "startup" script that is reserved for just such
%   purposes.  Adjust the path below as needed.
%
%   Alternatively, place the appropriate "addpath"
%   commands directly in the "startup.m" file.
 
% Copyright (C) 1997 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.
 
% Version of 03-Jul-1997 09:09:29.
% Updated    12-Apr-2000 13:26:34.

% These statements assume that the NetCDF Toolbox is
%  located in the conventional Matlab "toolbox" area.
%  Adjust as needed.

toolbox_area = 'toolbox';

path(path, fullfile(matlabroot, toolbox_area, 'netcdf', ''))
path(path, fullfile(matlabroot, toolbox_area, 'netcdf', 'nctype', ''))
path(path, fullfile(matlabroot, toolbox_area, 'netcdf', 'ncutility', ''))
path(path, fullfile(matlabroot, toolbox_area, 'netcdf', 'ncfiles', ''))

⌨️ 快捷键说明

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