How to obtain data which fall outside the limits of the scatter plots?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a set of data in a scattered diagram and I need to put limits to it. I want to collect values which lie outside the plot. Is there any code for that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164906/image.png)
댓글 수: 0
채택된 답변
dpb
2017년 6월 6일
If the red line is computed at the same points as the other data, then simply
ix=ltbluepoints>redpoints; % logical vector of those exceeding the redline
ptsOver=ltbluepoints(ix); % and the values associated
"ltbluepoints" and "redpoints" are the variables you've used for those two portions of the figure.
댓글 수: 0
추가 답변 (1개)
Steven Lord
2017년 6월 6일
You may be able to use the isoutlier function to identify those points with values that are too large.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!