📄 pathdefrt.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 + -