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!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!