condplot - Conditional line plot

Condplot draws a line that changes color depending on given thresholds.

You are now following this Submission

Condplot draws a line that changes color (or other line styles) depending on user defined thresholds. The threshold could apply to both x and y axes and could be defined by multiple values. All regular Name-Value arguments for function plot are acceptable. This function returns two arrays of Line Objects which could be used to modify properties of lines and markers, respectively, after creating them.
This function requires Mapping Toolbox. If you do not have it installed, please add intersections.m to your path for replacement.

Cite As

Yang Liu (2026). condplot - Conditional line plot (https://nl.mathworks.com/matlabcentral/fileexchange/111225-condplot-conditional-line-plot), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fix some bugs.

1.0.1

Fix some bugs.

1.0.0