Colored line or scatter plot
                    Version 1.0.0.0 (1.49 KB) by  
                  Pekka Kumpulainen
                
                
                  Plot lines with CData, (actually surface)
                
                  
              plots a 2-D "line" with c-data as color
Makes a surface object and the colouring is controlled by the colormap.
Examples: 
x = 0:0.1:2*pi;
color_line(x,sin(x),sin(x))
color_line(x,cos(x),cos(x),'*')
Cite As
Pekka Kumpulainen (2025). Colored line or scatter plot (https://au.mathworks.com/matlabcentral/fileexchange/19476-colored-line-or-scatter-plot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
              Created with
              R2008a
            
            
              Compatible with any release
            
          Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Scatter Plots >
      Find more on Line Plots in Help Center and MATLAB Answers
    
  Tags
Acknowledgements
Inspired: 3D colored line plot
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
