이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
[DISTANCES PROJ_POINTS]=DISTANCE2LINE(POINTS,LINE_SEG)
This function distance2line computes minimum euclidean distances (vertical distances) of "points" (nxm matrix which m=2,3) to a "line" (1xm which m=2,3). The input "line" is defined by its two points that lying on this line
The output "distances" is a nx1 vector matrix consisting of distances of points to the line. The second output "proj_points" is also a nxm matrix and this matrix gives the coordinates of vertically projected points onto the line.
I did not include any input error checking for the speed considerations because i use this function in a loop in MATLAB. So this function must be used with care.
You can use the provided example file for usage.
Mehmet OZTURK, 2011
인용 양식
Mehmet OZTURK (2026). DISTANCE2LINE c++ mex (https://kr.mathworks.com/matlabcentral/fileexchange/32110-distance2line-c-mex), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.1 | will be available as a Toolbox file |
|
|
| 1.0.0.0 |
