DaveM@13: % An attempt to make sense of the treeLinkFeatures output data in a DaveM@13: % meaningful way, and to understand why so man DaveM@13: DaveM@14: tl = []; DaveM@13: for i = 1:length(featureList) DaveM@13: t = zeros(5,1); DaveM@13: for ii = 1:5 DaveM@13: t(ii) = (featureList{i}(ii) == ii); DaveM@13: end DaveM@13: tl = [tl; (sum(t)==5)]; DaveM@13: end DaveM@13: DaveM@13: %% DaveM@13: compareList = linkList(find(tl),1:2); DaveM@13: DaveM@13: for i = 1:length(compareList) DaveM@13: try DaveM@13: t1 = T(mod(compareList(i,1),length(featureList)+1)); DaveM@13: t2 = T(mod(compareList(i,2),length(featureList)+1)); DaveM@13: if(t1 == t2) DaveM@13: fprintf('Line %d matches\n',i); DaveM@13: else DaveM@13: fprintf('Line %d FAILS\n', i); DaveM@13: end DaveM@13: catch DaveM@13: %TO CATCH- Attempted to access T(0); index must be a positive integer or logical. DaveM@13: fprintf('Line %d CRASH **************\n',i); DaveM@13: DaveM@13: end DaveM@13: %%% THIS DOESNT WORK - Attempted to access T(0); index must be a positive integer or logical. DaveM@13: DaveM@13: DaveM@13: end