Skip to content
Snippets Groups Projects
Commit 0ad7cfef authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

gtGetFunctionDeps : General formatting and commenting


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@417 4c865b51-4357-4376-afb4-474e03ccb993
parent 954c4b43
No related branches found
No related tags found
No related merge requests found
function deps = gtGetFunctionDeps(functionNames, deps, excludePattern)
% GTGETFUNCTIONDEPS Returns dependecies of the given functions
% GTGETFUNCTIONDEPS Returns dependecies of the given functions
% deps = gtGetFunctionDeps(functionNames, deps, excludePattern)
% -------------------------------------------------------------
%
% INPUT:
% functionNames =
% deps =
% excludePattern =
%
% OUTPUT:
% deps =
%
% SUB-FUNCTIONS:
%[sub]- filterListing
%
% Version 001.2 16-05-2012 by LNervo
% Formatting and commenting
%
if (~exist('deps', 'var'))
deps = functionNames;
......@@ -22,8 +39,12 @@ function deps = gtGetFunctionDeps(functionNames, deps, excludePattern)
end
end
%%
% sub-functions
function listing = filterListing(listing, excludePattern)
matches = regexp(listing, excludePattern);
listing = listing(find(cellfun(@(x)isempty(x), matches) == 1));
listing = listing(cellfun(@(x)isempty(x), matches) == 1);
end
end
end % end of function
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment