Distância
Distância e Similaridade de Jaccard
Matlab
str1=’When nine hundred years old you reach, look as good
you will not.’
str2=’You will not look as good when nine hundred years old’
C1=unique(strsplit(lower(str1)));
C2=unique(strsplit(lower(str2)));
simJ=length(intersect(C1,C2))/ length(union(C1,C2))Last updated