Conditionally Colored Plot (CCPLOT)
Versión 1.1.0.0 (1,61 KB) por
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');
Citar como
Michael Heidingsfeld (2026). Conditionally Colored Plot (CCPLOT) (https://es.mathworks.com/matlabcentral/fileexchange/37725-conditionally-colored-plot-ccplot), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Color and Styling en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspirado por: Conditionally colored line plot
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
