-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconclude.m
More file actions
executable file
·32 lines (32 loc) · 990 Bytes
/
conclude.m
File metadata and controls
executable file
·32 lines (32 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function conclude(DD,noOutput) %#ok<INUSD>
if ~exist('noOutput','var')
output(DD);
end
save_info;
delete ./.comm*.mat
end
% #########################################################################
function output(DD)
allData=dir(DD.path.root);
allData =allData(cat(1,allData.isdir));
allData =allData(3:end);
[~,lastIdx]=max(cat(1,allData.datenum));
relevantDir=allData(lastIdx);
relevantDir.fullfile=fullfile(DD.path.root, relevantDir.name);
relevantDir.what=what( relevantDir.fullfile);
%%
inform(DD.monitor.tic)
end
% #########################################################################
function inform(Dtic)
disp([' ']);
disp([' ']);
disp([' ']);
disp([mfilename ' - SUCCESS!!!']);
disp([' ']);
disp(['time used: ']) ;
daysUsed=toc(Dtic)/60/60/24;
disp(datestr(daysUsed,'dd-HH:MM:SS',0));
disp([' ']);
end
% #########################################################################