from
BLOC - Automatic UML class diagram creator
by Thinh
Used to create a UML class diagram from a MATLAB object oriented program.
|
| plusrecursive(plusDir,dirTotal)
|
function [dirOut,dirTotal] = plusrecursive(plusDir,dirTotal)
dirOut = {};
for i = 1:size(plusDir,2) % for however many directories there are
tempDir = []; % clear the tempdir cache for each loop
tempStruc = what(plusDir{i}); % extract contents of directory into a structure array
tempPlusName = tempStruc.packages; % extracts ax1 cell array containing the names of packages
for ii = 1:size(tempPlusName,1) % for however many packages located per directory
dirOut(end+1) = strcat({plusDir{i}},{'\'},{'+'},{tempPlusName{ii}}); % concatenates previous dir with pckg name to create new dir.
end
end
for iii = 1:size(dirOut,2)
dirTotal(end+1) = dirOut(iii);
end
plusDir = dirOut;
if isempty(plusDir) == 1
return
end
[dirOut,dirTotal] = plusrecursive(plusDir,dirTotal);
end
|
|
Contact us