필터 지우기
필터 지우기

Euclidean distance between articulatory movement points

조회 수: 1 (최근 30일)
mahesh bvm
mahesh bvm 2017년 8월 18일
편집: Image Analyst 2017년 8월 19일
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.

채택된 답변

Image Analyst
Image Analyst 2017년 8월 18일
Try this:
distances = sqrt((xUpper-xLower).^2 + (yUpper-yLower).^2 + (zUpper-zLower).^2);
  댓글 수: 2
mahesh bvm
mahesh bvm 2017년 8월 19일
Thank you very much for the quick reply. It works. However, as I had mentioned in the question itself I was looking the difference between the upper and lower lip only in Z dimension so I have discarded and x and y dimensions. so the final script, if i am not wrong is... distance = sqrt(zUpper-zLower).^2;
Kindly Correct me if am wrong.
Image Analyst
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 CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by