フィルターのクリア

Extracting groups of vector

1 回表示 (過去 30 日間)
Daniel
Daniel 2022 年 11 月 18 日
コメント済み: Matt J 2022 年 11 月 18 日
Hello,
i would like to extract subvectors of a vectors. I ask me, if this is possible without loops or so. I have a data, that is shown below. Lets say the y-axis is a vector A and the x-axis B. As you can see there is groups of points along the x-axis. I would like to extract all columns that you can see in the picture in subvectors. The selection needs to be with a tolerance, since B is a measured data.
Do you have any idee, how this could be done? thank you in advance!
  1 件のコメント
KSSV
KSSV 2022 年 11 月 18 日
Read about ismembertol, knnsearch, kmeans. More help on explaining the question clearly with data.

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2022 年 11 月 18 日
You could try running clusterdata on the x-axis coordinates.
  2 件のコメント
Image Analyst
Image Analyst 2022 年 11 月 18 日
Nice - I didn't know about that function. I was going to suggest histogram or histcounts, which would also work.
Matt J
Matt J 2022 年 11 月 18 日
If you didn't have the stats toolbox, you probably would have to resort to that.

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by