How can I change the line color in a graph using plot

3 views (last 30 days)
How can I change the line color in a graph using plot

Accepted Answer

Walter Roberson
Walter Roberson on 19 Sep 2018
Two examples:
plot(x, y, 'r') %named color, red
plot(x, y, 'Color', [0.37 0.88 .06]) %unnamed color given by relative intensities

More Answers (0)

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!