distance between vectors in matlab???
이전 댓글 표시
hi
i have a vector of 85*1 size and a matrix contains 85*396.
i need to find the distance between the 85*1 vector and all the vectors(columns ) of the matrix gamma and returns the closest distance and the column that give me this distance , how can i do this by matlab ???
thanks for all
채택된 답변
추가 답변 (1개)
Thomas
2012년 4월 3일
doc boxdist
The box dist should give you distance between position vectors.
Follow the example given int he documentation
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!