Error in using gscatter plot
Afficher commentaires plus anciens
Hi everyone,
I'm having some trouble in plotting a gscatter plot and I need some help. I have a 10 by 6 matrix, where the first 3 columns correspond to the first group, the rest of the columns to the second group and the rows to each participant. When I try to plot the gscatter "gscatter(d(:,1),d(:,2),d(:,3),group,'rmb','+o*')", I get the following error:
Error using line Color value must be a 3 element numeric vector
Error in iscatter (line 50) hh(j,:) = line(x(ii,:), y(ii,:), ...
Error in gscatter (line 100) hh = iscatter(x, y, g, clr, sym, siz);
Does anyone know what it is? I'm still not very familiar with matlab, so I have no idea how to interpret this error in this context.
Thank you in advance!
Réponses (0)
Catégories
En savoir plus sur Scatter Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!