point coordinate markers of selected points
Mostra commenti meno recenti
Hello how can i present automatickly the coordinate data marker of the selected 'or' points? Thanks
plot(x, y, 'g');
hold('on');
index = (5 < y & y < 7);
plot(find(index), y(index), 'or');
2 Commenti
Jan
il 17 Mar 2017
The question is not clear to me. What should happen when? What is the difference to your question https://www.mathworks.com/matlabcentral/answers/330192-marking-a-points-in-a-curve-that-match-condition? If you have problems with my answer given there, adding this as a comment would be useful.
fima v
il 17 Mar 2017
Risposta accettata
Più risposte (1)
Thorsten
il 17 Mar 2017
You don't need find, you can work with logical indices:
plot(x(index), y(index), 'or');
Categorie
Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
