How to group scatter plot data?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have three vectors x,y and z of the same length. How can I generate a scatter plot of x and y which is grouped according to the corresponding values of z (e.g. group 1 for z<10, group 2 for 10<=z<20 and group 3 for z>=20)? I'm thinking of using gscatter but for that I have to make a group vector first. Is there any way I can generate a vector "group" which is "1" for z<10, "2" for 10<=z<20 and "3" for z>=20? Any help is much appreciated.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Scatter Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!