Curve coloring

版本 1.1.0.0 (1.6 KB) 作者: Giorgos
Color curves in a piece-wise fashion
239.0 次下载
更新时间 2014/2/5

查看许可证

Piece-wise curve coloring according to values which are user-defined. The values can be real or complex-valued. In the latter case, the colormap is constructed using absolute values.
This routine is designed to plot temperature, strain, electric currents, ... along the boundaries of a surface.
The procedure requires a user-defined discretisation of the curve and a vector of values along the discretized curve.

The screenshot was made using following code:

t = (0:100)/100*2*pi;
c = [cos(t);sin(t)];
y = cos(2*t);
ColorCurve(c,y)

引用格式

Giorgos (2024). Curve coloring (https://www.mathworks.com/matlabcentral/fileexchange/45403-curve-coloring), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Line Plots 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Simplified curve input