annotate code/testparseData.m @ 37:d9a9a6b93026 tip

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