Error in using gscatter plot

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!

Answers (0)

Asked:

on 16 Apr 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!