image thumbnail

cline.m

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

5.8K Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/3747-cline-m), MATLAB Central File Exchange. Retrieved .

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

Inspired: Plot 3D Color Line

Community Treasure Hunt

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

Start Hunting!