Matlab gplot extra customly defined colors

7 次查看(过去 30 天)
I have a question regarding Matlab's function gplot (<http://www.mathworks.nl/help/matlab/ref/gplot.html)>. I would like to call gplot several times in a for-loop to plot several graphs/paths in the same figure. However, I would like to use more colors than standardly available. With the ordinary plot command this can, for example, be done in the following way:
plot([1 2],[3 4],'Color',[rand rand rand])
But this seems not possible within gplot. Does anyone know how to do this. My code is currently:
col=char('r', 'g', 'm', 'y','r', 'g', 'm', 'y')
hold all
for i=1:k
gplot(Cell_Matrix{i},coordinates,col(i))
end
hold off
So now I have repeated using the same color (excluding some I do not want), but I would like to add way more new colors (around 25 extra).
I would really appreciate your help!

回答(1 个)

Image Analyst
Image Analyst 2013-5-24
编辑:Image Analyst 2013-5-24

类别

Help CenterFile Exchange 中查找有关 Pie Charts 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by