plot, setting different colors,
1 次查看(过去 30 天)
显示 更早的评论
Hello,
i have cell. In cell is 100 matrix. I want, that each matrix, were of different colors.(I can have for example 1000 matrix in cell.)
for example: input data Z={1x100cell} Z{1}=[1x3 double] ...Z{100}=[1x3 double]
FOR EXAMPLE MY CODE
cl=lines((length(MON)));%color
hold on view([-118,3])
for ii = 1:size(Z1,2)
xyz = cat(1, Z1{ii}{:});
h2(ii) = plot3(xyz(:,1), xyz(:,2), xyz(:,3),'marker', '*','color', cl(ii,:),'displayname', sprintf('Zhluk %d', ii),'markersize', 14,'linestyle', 'none');
end
I have a problem when I have a lot of matrix,because the colors repeat. I must have different colors.
Thanks.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!