【问题标题】:Excel - 3D cartesian points - euclidean distance for a large group of pointsExcel - 3D笛卡尔点 - 一大组点的欧几里得距离
【发布时间】:2016-03-01 23:12:34
【问题描述】:

我在 Excel 中有一大组 XYZ 笛卡尔点(实际上大约 40k),我正在寻找一个公式或宏来比较每个点与其他点之间的距离。

计算两个 3D 点之间的距离值是:

Distance=SQRT((X2 – X1)^2 + (Y2 – Y1)^2 + (Z2 – Z1)^2)
X1=the X value of the 1st point
X2=the X value of the 2nd point
Y1=the Y value of the 1st point
Y2=the Y value of the 2nd point
etc

这是一个从 10 分开始的例子:

http://i.imgur.com/U3lchMk.jpg

有人知道如何将它构建到 Excel 中,以便我可以将整个页面的公式复制到水平限制吗?或者您会推荐比使用 Excel 更好的方法吗?

作为次要目标,我想将点分组为可以连接距离小于 2 的集群。但如果我能完成第一个目标,我可以稍后再考虑第二个目标。

【问题讨论】:

  • 实际上,我能够通过更多研究提出解决方案:i.imgur.com/9JL5Qni.jpg =SQRT(((INDIRECT("A"&$D2))-(INDIRECT("A" &E$1)))^2+((间接("B"&$D2))-(间接("B"&E$1)))^2+((间接("C"&$D2))-(间接("C"&E$1)))^2)

标签: excel cartesian


【解决方案1】:

实际上,我能够通过更多研究提出解决方案:i.imgur.com/9JL5Qni.jpg =SQRT(((INDIRECT("A"&$D2))-(INDIRECT("A "&E$1)))^2+((间接("B"&$D2))-(间接‌​("B"&E$1)))^2+((间接("C"&$D2))- (间接("C"&E$1)))^2)

【讨论】:

    猜你喜欢
    • 2013-02-12
    • 2011-01-29
    • 2014-01-17
    • 2014-11-05
    • 2019-05-07
    • 2014-10-27
    • 2018-08-05
    • 2015-01-16
    • 1970-01-01
    相关资源
    最近更新 更多