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!