Plot different classes in different colors
Mostrar comentarios más antiguos
I' m doing a pca and I want make a general function to plot two different classes in different colors( blue square, red circle) in the same figure and i want to use this funtion in any other experiment
Resuming: for the data above, the values of class 1 must be in different color in the class 2 in the same figure
for example
Var1 Var2 Var*n* Class
2.3 0.22 12 1
2.4 0.23 11 1
2.8 0.21 15 2
2.1 0.21 16 1
2.9 0.23 14 2
Best regards Rafael
2 comentarios
bym
el 6 de Abr. de 2011
do you want to plot Var1 vs Var2, or each variable in a separate plot colored according to class?
Rafael Freire
el 7 de Abr. de 2011
Respuesta aceptada
Más respuestas (2)
Matt Tearle
el 7 de Abr. de 2011
1 voto
gscatter doesn't do what you're looking for?
1 comentario
Rafael Freire
el 7 de Abr. de 2011
Rafael Freire
el 7 de Abr. de 2011
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!