Removing dots from a graph

3 ビュー (過去 30 日間)
Shahraiz chishty
Shahraiz chishty 2022 年 4 月 27 日
回答済み: Image Analyst 2022 年 4 月 27 日
I am trying to make a map using IR Data and some equations. I want to remove the unwanted data so that my final map has the least amount of irregularities. I want to remove these dots that are outliers. I have tried filtering using rmoutlier but that doesnt work very well.
  4 件のコメント
Shahraiz chishty
Shahraiz chishty 2022 年 4 月 27 日
@Jan By outliers i didnt mean just the marked ones I just marked some outliers to potray what I meant to say. What i actually want is the Big square with the two little squares in it. Its a map of an envirionment created by IR signals harvested by moving a robot around that specific environment. The miscellaneous dots need to be removed to achieve a cleaner final map.
Shahraiz chishty
Shahraiz chishty 2022 年 4 月 27 日
@DGM Yup thats the data. I had the data imported in the workspace. I thought the code that I saved and posted would have the data aswell.

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

回答 (1 件)

Image Analyst
Image Analyst 2022 年 4 月 27 日
If x and y are your coordinate arrays, try this
goodIndexes = x >= 0 & y <= 2;
x = x(goodIndexes);
y = y(goodIndexes);
Or maybe you can use dbscan() or swrt() to extract only points that are within a certain distance of another point, so that isolated points get removed.
If that doesn't meet your needs, then say why not.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by