image thumbnail


version (1.48 KB) by Daniel Ennis
Plots a 3D line with color encoding along the length.


Updated 23 Jul 2003

View License

This function plots a 3D line (x,y,z) encoded with scalar color data (c) using the specified colormap (default=jet). Thus, lines with variable color can be plotted (eg. temperature along a 3D line path).

Cite As

Daniel Ennis (2021). cline.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Plot 3D Color Line

Community Treasure Hunt

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

Start Hunting!