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

DGM
DGM 2022년 4월 27일
I should have learned my lesson. I should have known that I couldn't expect R2019b to open an .mlx file with less than 20 minutes of frustration, crashes, and futile spinners.
No problem though. That's just me trying to be hopeful. I can always just open the archive and get the mcode.
So uh. What's eeproject1trace? I'm assuming that's the data, because there isn't any.
Jan
Jan 2022년 4월 27일
@Shahraiz chishty: How do you define "outliers"? Why are the marked dots outliers, but a bunch of others are not? Matlab has no magic power to guess, what you want. So what is the mathematical definition?
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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2022년 4월 27일

답변:

2022년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by