function [trace_list, builtins, class_names, prob_files, prob_symbols, ...
eval_strings, calledfrom, java_classes] = depfunsilent(varargin)
%DEPFUNSILENT is a silent version of the system function DEPFUN
%DEPFUN Locate dependent functions of an m/p-file.
% TRACE_LIST = DEPFUN(FUN) returns a cell array of names of the dependent
% functions of FUN. FUN is directly dependent on the functions that it
% calls; FUN is indirectly dependent on the functions called by the
% functions called by FUN, and so on.
%
% [TRACE_LIST, BUILTINS, CLASS_NAMES] = DEPFUN(FUN) also returns a
% cell array of all builtin functions and MATLAB classes called by FUN
% and its dependent functions.
%
% The syntax for DEPFUN with all possible outputs is:
% [TRACE_LIST, BUILTINS, CLASS_NAMES, PROB_FILES, PROB_SYMBOLS,...
% EVAL_STRINGS, CALLED_FROM, JAVA_CLASSES] = DEPFUN(FUN)
% where:
% PROB_FILES is a structure array of m/p-files that DEPFUN could not parse,
% locate, or access. Parsing problems can arise from MATLAB syntax errors.
% PROB_SYMBOLS is a structure array that indicates which symbol names DEPFUN
% could not resolve as functions or variables.
% EVAL_STRINGS is a structure array that indicates where functions in
% TRACE_LIST call eval, evalc, evalin, or feval. The strings that eval and
% similar functions evaluate might use functions that are not in TRACE_LIST.
% CALLED_FROM is a cell array that indicates who calls whom. CALLED_FROM
% is arranged so that TRACE_LIST(CALLED_FROM{i}) lists all functions in FUN
% that call TRACE_LIST{i}. CALLED_FROM and TRACE_LIST have the same length.
% JAVA_CLASSES is a cell array of Java class names used by one or more of the
% files in TRACE_LIST.
%
% [...] = DEPFUN(FILE1,FILE2,...) processes each file in turn.
%
% [...] = DEPFUN(FIG_FILE) looks for dependent functions among the
% callback strings of any GUI elements defined in the .FIG (or
% .MAT) file FIG_FILE.
%
% DEPFUN has optional control input strings. The control parameter '-toponly'
% will override the default recursive search for dependent files and means
% DEPFUN will return lists of builtins, M/P/MEX-files, and classes used only
% in the functions listed as inputs to DEPFUN. The control parameter
% '-nographics' forces DEPFUN to only include graphics functions that are
% explicitly called. Normally DEPFUN, at a minimum, adds newplot to the
% function list.
%
% Note: DEPFUN frequently writes temporary M-files to the TEMP
% directory. During this process the temporary directory is added to the
% MATLAB path. Please try to ensure there are no M/P/MEX-files in this
% directory.
%
% If you use any toolbar items from the default figure, then you
% need to include 'FigureToolBar.fig' in your input to DEPFUN. If you
% use any menu items from the default figure, then you must include
% 'FigureMenuBar.fig' in your input to DEPFUN.
%
% See also DEPDIR.
% Copyright 1984-2000 The MathWorks, Inc.
% $Revision: 1.41 $ $Date: 2000/08/15 13:55:03 $
% check if there is the optional input flag that indicate we're not doing a recursive
% search
toponly = 0; nographics = 0; newvarargin = {};
for i=1:length(varargin)
if isstr(varargin{i}) & strcmp(varargin{i},'-toponly')
toponly = i;
end
if isstr(varargin{i}) & strcmp(varargin{i},'-nographics')
nographics = i;
end
end
if toponly, varargin{toponly} = []; end
if nographics, varargin{nographics} = []; end
for i = 1:length(varargin)
if ~isempty(varargin{i})
newvarargin{end+1} = varargin{i};
end
end
varargin = newvarargin;
if isempty(varargin), error('Not enough input arguments.'); end
% check for valid input
trace_list = {};
nin = length(varargin);
for i=1:nin
if ~isstr(varargin{i})
error('Input must be strings.');
end
% make sure start_name is a full path name
[path, fname, extension] = fileparts(varargin{i});
if isempty(extension)
if exist(path,'dir')
% have full path and name but no extension
if exist([varargin{i} '.m'])
extension = '.m';
elseif exist([varargin{i} mexext])
extension = mexext;
elseif exist([varargin{i} '.p'])
extension = 'p';
else
error(['File ' varargin{i} ' cannot be located or is not an ' ...
'M/MEX/P file.']);
end
trace_list{end+1} = [varargin{i} extension];
else
fullname = which(varargin{i});
if ispc, extension = lower(extension); end
if isempty(fullname)
error(['Cannot locate file ' varargin{i} '.']);
end
if strcmp(fullname,'built-in')
fprintf('Function %s is a builtin and is being removed from search list\n',varargin{i});
else
trace_list{end+1} = fullname;
end
end
elseif exist(path,'dir')
% got an extension and a full path
trace_list(end+1) = varargin(i);
elseif any(strcmp(extension,{'.m' '.p' '.fig' ['.' mexext]}))
fullname = which(varargin{i});
if isempty(fullname)
error(['Cannot locate file ' varargin{i} '.']);
end
trace_list{end+1} = fullname;
else
error(['File ' varargin{i} ' is not an allowed file type (M/P/FIGS).']);
end
end
if isempty(trace_list)
clear trace_list builtins class_names prob_files prob_symbols
clear eval_strings calledfrom dyn_syms
disp('DEPFUN inputs have no M-files to examine.');
return
end
% Add newplot function to trace list as it's called indirectly
% for any graphics operation.
if ~toponly & ~nographics
trace_list{end+1} = which('newplot');
if strcmp(trace_list(end),'built-in'), trace_list(end) = []; end
end
% get handle graphics info
if ~toponly & ~nographics
[hg_param, hg_val, cbparam, cbdef] = gethginfo;
for i=1:length(cbdef)
fname = which(cbdef{i});
if ~strcmp(fname,'built-in'), trace_list{end+1} = fname; end
end
else
gethginfo('setup');
end
% Make sure tempdir is on the path
if isempty(findstr(tempdir,matlabpath))
addpath(tempdir)
added_temp = 1;
else
added_temp = 0;
end
% Generate a temp m-file name that is used to hold evaluated strings
% for compilation. Test temp file to verify it can be opened in write
% mode and deleted. Unfortunately the delete command does not provide
% an error return value so I'm catching the warning and then erroring out.
lastwarn('');
tmpname = [tempname '.m'];
fid = fopen(tmpname, 'w');
fclose(fid);
if exist(tmpname), delete(tmpname); end
if strcmp(lastwarn,'File not found or permission denied')
error(['Unable to run DEPFUN due to inability to write to and remove ' ...
'temporary file (' tmpname ').']);
end
% Check for PC so we can do case insensitive file name comparisons
ispc = strncmp(computer,'PC',2);
prob_files = []; fc = 0; clas = {};
calledfrom(1:length(trace_list)) = {0}; prob_symbols = [];
script_id = []; eval_strings = []; which_psym = {};
del_prob_sym = {}; java_classes = {};
fsep = filesep;
% initialize builtin function list
if toponly
builtins = {};
which_builtins = [];
else
builtins = {'subsindex' 'subsref' 'subsasgn' 'vertcat' 'horzcat'};
which_builtins{length(builtins)} = [];
for i=1:length(builtins)
meth = whichall(builtins{i});
if length(meth) > 1
which_builtins{i} = meth;
end
end
end
% find currently visible classes
cls = classes;
% initialize which list that corresponds to trace list
which_trace_list{length(trace_list)} = [];
for i=1:length(trace_list)
[path, fname, extension] = f
没有合适的资源?快使用搜索试试~ 我知道了~
BeamLab200.rar_ beamlet_Beamlet matlab_Pseudo-Arclength_beamlet_
共907个文件
m:514个
p:283个
mat:29个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 189 浏览量
2022-09-24
13:43:51
上传
评论
收藏 25.12MB RAR 举报
温馨提示
beamlet变化的工具箱,利用beamlet的相关知识。
资源推荐
资源详情
资源评论
收起资源包目录
BeamLab200.rar_ beamlet_Beamlet matlab_Pseudo-Arclength_beamlet_ (907个子文件)
5.bmp 260KB
Thumbs.db 5KB
FindMCTTRP_mex.dll 64KB
BestWedgeletPartition.dll 56KB
SlowWedgeTrans.dll 56KB
SlowBeamTrans.dll 52KB
MinCostPath.dll 52KB
SlowBeamTransAB.dll 52KB
SlowBeamTransAB.dll 52KB
FRT_RP_C.dll 48KB
AFRT_RP_C.dll 48KB
IFRT_RP_C.dll 48KB
BetaPyramid.dll 48KB
t_Cart_2_RectPolar_c.dll 44KB
PseudopolarFFT.dll 44KB
Adj_PseudopolarFFT.dll 44KB
PseudopolarFFT_c.dll 44KB
Adj_PseudopolarFFT_C.dll 44KB
Cart_2_RectPolar_c.dll 40KB
BLGriding.fig 493KB
noise.fig 429KB
galaxies2.fig 326KB
backp2.fig 293KB
ThreeDShearing.fig 240KB
analysis1.fig 230KB
SS2Db.fig 157KB
sub_division.fig 107KB
slice_ind1.fig 84KB
dcubes.fig 72KB
slice_ind2.fig 66KB
div_planes.fig 55KB
SS3Dind.fig 52KB
backp1.fig 45KB
timing.fig 34KB
beamlets.fig 24KB
Abeamlet.fig 19KB
galaxies.jpg 69KB
pyramid.jpg 36KB
depfunsilent.m 38KB
dMakeSSFigure13.m 19KB
BL3DDemo.m 15KB
FSSDemo.m 14KB
BMIADemo.m 13KB
DCRTDemo.m 13KB
DRTDemo.m 12KB
RPDemo.m 12KB
BestPartitionDemo.m 12KB
FSSDemoOld.m 12KB
BMIADemoOld.m 11KB
INSTALLATION.m 9KB
ViewThreshCurvelet2.m 8KB
ViewThreshCurvelet1.m 8KB
guiparFSSFig1.m 5KB
guiparFSSFig2.m 5KB
guiparFSSFig4.m 5KB
BeamletsDecoratedPartitionDemo.m 5KB
guiparFSSFig3.m 5KB
BeamletsDecoratedPartitionDemo.m 5KB
BeamPath.m 4KB
BestRPBasis.m 4KB
BuildRPBasisTree2.m 4KB
ADDINGNEWFEATURES.m 4KB
TestBestPartition.m 3KB
FunctionDependency.m 3KB
LP_Interior.m 3KB
BuildRPBasisTree.m 3KB
dRDrawFig29.m 3KB
dRDrawFig08.m 3KB
Beamlet3Dfig11.m 3KB
Beamlet3Dfig10.m 3KB
COPYING.m 3KB
dfig08draw.m 3KB
dRDrawFig21.m 3KB
dRDrawFig31.m 3KB
dRDrawFig17.m 3KB
TestInvFastSlantStack.m 3KB
Shear3D2.m 3KB
dRDrawFig25.m 3KB
dRDrawFig24.m 3KB
Beamlet3Dfig07.m 3KB
dMakeSSFigure11_4.m 3KB
PIWT_YM.m 2KB
BMIAfig11.m 2KB
dMakeSSFigure11_3.m 2KB
dMakeSSFigure11_2.m 2KB
dRDrawFig27.m 2KB
circshift.m 2KB
build.m 2KB
dMakeSSFigure2.m 2KB
TestAdjSlowSlantStack.m 2KB
dMakeSSFigure11_1.m 2KB
m2p.m 2KB
dRDrawFig07.m 2KB
dRPDrawFig14.m 2KB
adj_newbt3aa.m 2KB
PFWT_YM.m 2KB
dRDrawFig33.m 2KB
dBMIAfig9.m 2KB
dRPDrawFig08.m 2KB
dRDrawFig13.m 2KB
共 907 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
我虽横行却不霸道
- 粉丝: 72
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功