cline.m

Plots a 3D line with color encoding along the length.
5.9K 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 (2024). 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
Categories
Find more on Line Plots in Help Center and MATLAB Answers
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!
Version Published Release Notes
1.0.0.0