How to obtain data which fall outside the limits of the scatter plots?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Pratheek Manangi
el 6 de Jun. de 2017
Respondida: Steven Lord
el 6 de Jun. de 2017
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 comentarios
Respuesta aceptada
dpb
el 6 de Jun. de 2017
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 comentarios
Más respuestas (1)
Steven Lord
el 6 de Jun. de 2017
You may be able to use the isoutlier function to identify those points with values that are too large.
0 comentarios
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!