Conditionally Colored Plot (CCPLOT)
版本 1.1.0.0 (1.6 KB) 作者:
Michael Heidingsfeld
Plots conditionally colored (2D line) graphs.
Plots the vector Y versus vector X using conditional coloring based on colormaps.
The condition vector C is independent of the values of X and Y but must be the same size.
The colormap MAP can either be a Matlab or a userdefined colormap.
Example:
x = linspace(0,4*pi,50);
y = sin(x);
c = y.^2;
map = colormap(jet);
h = ccplot(x,y,c,map);
set(h,'Marker','o');
引用格式
Michael Heidingsfeld (2026). Conditionally Colored Plot (CCPLOT) (https://ww2.mathworks.cn/matlabcentral/fileexchange/37725-conditionally-colored-plot-ccplot), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2010b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Color and Styling 的更多信息
