Curve coloring

Version 1.1.0.0 (1,56 KB) von Giorgos
Color curves in a piece-wise fashion
239 Downloads
Aktualisiert 5. Feb 2014

Lizenz anzeigen

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)

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2012a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Line Plots finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

Simplified curve input