plot, setting different colors,

1 Ansicht (letzte 30 Tage)
Tomas
Tomas am 2 Mär. 2014
Bearbeitet: Tomas am 7 Mär. 2014
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.

Antworten (0)

Kategorien

Mehr zu View and Analyze Simulation Results finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by