servpath.m

来自「用matalab开发的随机数生成程序包」· M 代码 · 共 24 行

M
24
字号
function servpath(sdir)

% SERVPATH add the counting processes and random number
% directories to the path. 
% Alternatively, you may add to your startup.m:
%  addpath('path_to_stsim\service', ...
%          'path_to_stsim\ranvar')
%  
%  servpath([sdir])
%
% Input: 
%      sdir - optional; path to the main directory with the
%         files. Default - current directory.

% Authors: R.Gaigalas, I.Kaj
% v1.0 17-Dec-05

  if nargin<1
    sdir = pwd;
  end

 addpath(sdir, regexprep(sdir, 'service', 'ranvar'));
 

⌨️ 快捷键说明

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