cline.m
Version 1.0.0.0 (1.48 KB) by
Daniel Ennis
Plots a 3D line with color encoding along the length.
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 (2026). 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 LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Find more on Line Plots in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Plot 3D Color Line
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
