Patch color selector

Version (1.73 KB) by Yi Cao
Selecting colors for a number of patches to avoid neighboring patches with the same color.


Updated 28 Oct 2010

View License

This small tool selects colors for a number of patches so that no any neighboring pair of patches have the same color. The tool was motivated by representing clusters produced by k-means.

It can also demonstrate the famous four color map theorem. The embedded example explains how to use this tool.

Cite As

Yi Cao (2023). Patch color selector (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Efficient K-Means Clustering using JIT

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes