-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparse_DIFN_format1.m
30 lines (18 loc) · 1011 Bytes
/
parse_DIFN_format1.m
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
function ret = parse_DIFN_format1(DelayedImageFileName)
ret = [];
str = strsplit(DelayedImageFileName,' ');
if 1 == numel(str)
str1 = strsplit(DelayedImageFileName,' ');
str2 = char(str1(2));
str3 = strsplit(str2,'.');
ret.delaystr = num2str(str2num(char(str3(1))));
elseif 2 == numel(str)
str = strsplit(DelayedImageFileName,' ');
str1 = char(str(1));
str2 = char(str(2));
str3 = strsplit(str2,'.');
str4 = char(str3(1));
str5 = strsplit(str4,'_');
ret.delaystr = num2str(str2num(char(str5(2))));
end
end