getColor

Get a color from a palette

Contents

Syntax

Description

color=getColor(index) return a color (in a string) from a palette based on the given index.

color=getColor(index) return a color in the format a RGB vector.

Example

for i=1:6
	line(1:10, rand(1, 10), 'color', getColor(i), 'lineWidth', 3);
end
legend('Color 1', 'Color 2', 'Color 3', 'Color 4', 'Color 5', 'Color 6');

Top page   Next: gaussianSimilarity.m   Prev:getTriFilterPrm.m