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

📄 whichdir.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[dir]=whichdir(name)%   WHICHDIR  Returns directory name containing file in search path.%%   WHICHDIR NAME returns the directory containing a file called NAME,%   i.e. the full path of the file excluding NAME and the trailing '/'. %%   If more than one directory contains a file called NAME, then %   WHICHDIR returns a cell array of directories names.%%   If NAME does not include an extension, then it is interpreted as%   the name of an m-file, i.e. having extension '.m' .%   _________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information %   (C) 2006 J.M. Lilly --- type 'help jlab_license' for details  if isempty(findstr(name,'.'))    name=[name '.m'];enddir=which(name,'-all');for i=1:length(dir)   dir{i}=dir{i}(1:end-length(name)-1);endif i==1    dir=dir{1};end

⌨️ 快捷键说明

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