Extracting groups of vector
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1198378/image.png)
Do you have any idee, how this could be done? thank you in advance!
답변 (1개)
Matt J
2022년 11월 18일
댓글 수: 2
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
2022년 11월 18일
If you didn't have the stats toolbox, you probably would have to resort to that.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!