How to calculate normalized euclidean distance on two vectors?
<p>Let's say I have the following two vectors:</p>

<pre><code>x = [(10-1).*rand(7,1) + 1; randi(10,1,1)];
y = [(10-1).*rand(7,1) + 1; randi(10,1,1)];
</code></pre>

<p>The first seven elements are continuous values in the range [1,10]. The last element is an integer in the range [1,10].</p>

<p>Now I would like to compute the euclidean distance between x and y. I think the integer element is a problem because all other elements can get very close but the integer element has always spacings of ones. So there is a bias towards the integer element.</p>

<p>How can I calculate something like a normalized euclidean distance on it?</p>