cline.m

Plots a 3D line with color encoding along the length.

You are now following this Submission

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 .

Acknowledgements

Inspired: Plot 3D Color Line

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0