comparison code/testparseData.m @ 32:4bdcab1e821c

tidy up directory
author DaveM
date Wed, 15 Mar 2017 11:33:55 +0000
parents phase2/testparseData.m@b95cee067fdd
children
comparison
equal deleted inserted replaced
31:55813e99c6cf 32:4bdcab1e821c
1 % An attempt to make sense of the treeLinkFeatures output data in a
2 % meaningful way, and to understand why so man
3
4 tl = [];
5 for i = 1:length(featureList)
6 t = zeros(5,1);
7 for ii = 1:5
8 t(ii) = (featureList{i}(ii) == ii);
9 end
10 tl = [tl; (sum(t)==5)];
11 end
12
13 %%
14 compareList = linkList(find(tl),1:2);
15
16 for i = 1:length(compareList)
17 try
18 t1 = T(mod(compareList(i,1),length(featureList)+1));
19 t2 = T(mod(compareList(i,2),length(featureList)+1));
20 if(t1 == t2)
21 fprintf('Line %d matches\n',i);
22 else
23 fprintf('Line %d FAILS\n', i);
24 end
25 catch
26 %TO CATCH- Attempted to access T(0); index must be a positive integer or logical.
27 fprintf('Line %d CRASH **************\n',i);
28
29 end
30 %%% THIS DOESNT WORK - Attempted to access T(0); index must be a positive integer or logical.
31
32
33 end