plot, setting different colors,

1 次查看(过去 30 天)
Tomas
Tomas 2014-3-2
编辑: Tomas 2014-3-7
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 个)

类别

Help CenterFile Exchange 中查找有关 View and Analyze Simulation Results 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by