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