Conditionally Colored Plot (CCPLOT)

Plots conditionally colored (2D line) graphs.
1.2K 次下载
更新 2012/8/6

查看许可证

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 CenterMATLAB Answers 中查找有关 Color and Styling 的更多信息
致谢

参考作品: Conditionally colored line plot

版本 已发布 发行说明
1.1.0.0

* Fixed minor error in example

1.0.0.0