Matlab Tutorial: Scattered Data Grouping Method and Code

Matlab Tutorial: Scattered Data Grouping Method and Code

In reality, many times we get many scattered points of data from sensors, measurement devices or other sources. For processing of this data, it must be classified, grouped or clustered. In Matlab, there are many ways to accomplish this task. In this article, we'll introduce a simple method for grouping scattered data using a tolerance value. The following are the specific steps and code implementation.

  1. prepare data

First, we need to prepare a set of scattered data. In this example, we will generate a set of random 2D scatter data to simulate the real situation. Here is the code:

% 生成随机二维散点数据
x = randn(1,100);
y = randn(1,100)

Supongo que te gusta

Origin blog.csdn.net/Jack_user/article/details/131795937
Recomendado
Clasificación