hello, i have a graph and i want to select some points automatically can anyone please help me. i attache the graph below and the points need to select are in circle.
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SAWANT JAYDIP
el 26 de Nov. de 2021
Respondida: Alagu Sankar Esakkiappan
el 7 de Dic. de 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/813949/image.jpeg)
1 comentario
Image Analyst
el 26 de Nov. de 2021
Maybe try imchangepts(). Attach your data if you want people to try things. There are probably lots of approaches depending on how you define the points. Attach several data sets because an algorithm that works for one might not work for a different one.
Respuestas (2)
Alagu Sankar Esakkiappan
el 7 de Dic. de 2021
I see that you're trying to highlight abrupt points in the plotted graph. This may be achieved using findchangepts to find out indices of exact points of interest. The indices may then be highlighted using plot function and utilizing its properties.
The following code may provide you further understanding:
highlightIndices = (findchangepts(lab,'MaxNumChanges',6))'; % Tinker properties of findchangepts to specify highlighting behavior
plot(cal,lab); % Original Plot without highlighting
hold on % To make changes on top of previous plot
plot(cal(highlightIndices),lab(highlightIndices),"ro","MarkerSize",15); % Highlights points with Red Circle of Radius 15
0 comentarios
Ver también
Categorías
Más información sobre Statistics and Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!