【问题标题】:How to find multiple horizontal straight lines in a scatter plot using MATLAB?如何使用 MATLAB 在散点图中找到多条水平直线?
【发布时间】:2021-01-13 19:57:41
【问题描述】:

你好, 我有一组点(散点图)。我有兴趣在此数据中找到多条(大约)水平直线(或集群)。例如,在所附图像中,我绘制了直线以显示所需的结果。数据中可能的直线总数是事先未知的。

如果有人能告诉我如何解决这个问题,我将非常感激。 提前致谢!

【问题讨论】:

    标签: matlab scatter-plot scatter horizontal-line straight-line-detection


    【解决方案1】:

    我会使用 RANSAC 算法 (see example in the documentation) 或霍夫变换 (See example here)。找到线条后,您可以为其斜率设置一个界限,以选择那些接近水平的线条。

    【讨论】:

      猜你喜欢
      • 2020-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-15
      • 2020-07-27
      • 1970-01-01
      • 2015-04-04
      • 1970-01-01
      相关资源
      最近更新 更多