⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pathdefrt.m

📁 MATLAB扩展编程by 孙永康.ZIP.有需要的朋友请来下载.
💻 M
字号:
function p = pathdefrt
%PATHDEFRT Search path defaults for the MATLAB Runtime Server.
%   PATHDEFRT is called by MATLABRT to set the MATLAB path.
%   This function should be located together with MATLABRT.

%   Copyright 1984-2000 The MathWorks, Inc.
%   $Revision: 1.11 $

% The path below is platform-independent; it is adapted
% appropriately for the platform that PATHDEFRT is executed on.  
% To use this PATHDEFRT function with your own application, 
% replace the directory names and paths in the list with the 
% directories that your Runtime Server application uses.

% PATH DEFINED HERE
p = ['$toolbox/local:',...
      '$toolbox/runtime/examples/gui:',...
      '$toolbox/matlab/datafun:',...
      '$toolbox/matlab/datatypes:',...
      '$toolbox/matlab/elfun:',...
      '$toolbox/matlab/elmat:',...
      '$toolbox/matlab/general:',...
      '$toolbox/matlab/graph3d:',...
      '$toolbox/matlab/graphics:',...
      '$toolbox/matlab/iofun:',...
      '$toolbox/matlab/lang:',...
      '$toolbox/matlab/ops:',...
      '$toolbox/matlab/specfun:',...
      '$toolbox/matlab/strfun:',...
      '$toolbox/matlab/uitools:',...
   ];

p = translate(p); % Translate p to a platform specific string

%--translate ---------------------------------------------------------
function p = translate(p);
%TRANSLATE Translate unix path to platform specific path
%   TRANSLATE fixes up the path so that it's valid on non-UNIX platforms

cname = computer;
if strncmp(cname,'PC',2)
   p = strrep(p,'/','\');
   p = strrep(p,':',';');
   p = strrep(p,'$',[matlabroot '\']);
else
   p = strrep(p,'$',[matlabroot '/']);
end

⌨️ 快捷键说明

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