Euclidean distance between articulatory movement points
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Image Analyst
2017-8-18
Try this:
distances = sqrt((xUpper-xLower).^2 + (yUpper-yLower).^2 + (zUpper-zLower).^2);
2 个评论
Image Analyst
2017-8-19
编辑:Image Analyst
2017-8-19
Yes, you can get the distance along each dimension separately if you want.
It would be
zdistance = abs(zUpper - zLower);
No sqrt needed.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation, Tuning, and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!