# MATLAB: Euclidean distance between articulatory movement points

articulationeuclidean distancespeech

I have data from two sensors that collect the articulatory movements in 3 dimensions (x, y, z). Assume that I have used channel 1(sensor 1) for Upper Lip and Channel 2 (sensor 2) for lower lip where each channel/sensor has recorded equal number of samples with a sampling rate of 200Hz. Now, how to find the euclidean distance for 'z' coordinate between upper lip and lower lip.

distances = sqrt((xUpper-xLower).^2 + (yUpper-yLower).^2 + (zUpper-zLower).^2);