How do I get point between two high dimensional points?

I have two points in high dimensional space (e.g., 10 dimensions).
How can I get the point that is between these two points? I.e., if I were to imagine a line between the two original points, how do I find the coordinates of the middle of that line?

 採用された回答

Torsten
Torsten 2023 年 2 月 1 日
編集済み: Torsten 2023 年 2 月 1 日

0 投票

0.5*(x1+x2)
or in general:
(1-lambda)*x1 + lambda*x2
for 0<=lambda<=1.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputational Geometry についてさらに検索

質問済み:

HT
2023 年 2 月 1 日

編集済み:

2023 年 2 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by