How to calculate the distance geometry between two vectors of 6 elements?

3 ビュー (過去 30 日間)
Rahim Rahim
Rahim Rahim 2020 年 12 月 10 日
回答済み: KSSV 2020 年 12 月 10 日
I have two vectors, V1 and V2 where:
V1 = [0.0084 0.1871 0.1033 0.3332 0.3156 0.0524];
V2 = [0.0176 0.2079 0.1245 0.2954 0.2510 0.1036];
How do I calculate the distance geometry between the two vectors ?

回答 (1 件)

KSSV
KSSV 2020 年 12 月 10 日
V1 = [0.0084 0.1871 0.1033 0.3332 0.3156 0.0524];
V2 = [0.0176 0.2079 0.1245 0.2954 0.2510 0.1036];
dv = V2-V1 ;
d = sqrt(sum(dv.^2))

カテゴリ

Help Center および File ExchangeComputational Geometry についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by