I am playing with the matlab bioinformatic toolbox and I have an issue with making phylogeny tree using pairwise distances;
my code is very simple, as following:
clear, clc
dist = [10, 10, 4];
tree = seqlinkage(dist,'complete');
phytreeviewer(tree)
the output looks like this
as you can see the pairwise distance is not exactly as I define. in the image the distance between Leaf1 and leaf2 is 20 and the leaf2 to leaf3 8.
So my question is what kind of distance it is and how can I change it to be what I expect to have.