ColorSelect for Loop-Based Plotting

Provides up to 125 colors, with the goal of keeping adjacent colors distinct.

您现在正在关注此提交

ColorSelect provides a pseudorandomized color vector for an input between 1 and 125. Higher or negative numbers will repeat. All colors will not be distinct.
Calling ColorSelect with no argument produces a demo plot, showing all possible colors. Calling ColorSelect with a single argument will produce a color vector that can be used with various plotting functions.
An example of how to call ColorSelect is contained in the function, lines 19-27. Additionally, it is possible to comment out line 35 in case a color gradient is desired.

引用格式

David Guglielmo (2026). ColorSelect for Loop-Based Plotting (https://ww2.mathworks.cn/matlabcentral/fileexchange/55274-colorselect-for-loop-based-plotting), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Loops and Conditional Statements 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

Corrected typos.

Better Title