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 Center および File ExchangeView 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