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 で Audio Processing Algorithm Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!