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

 Accepted Answer

plot(x,y,'r') %r refers to red color
See colors to know how many colours are available.

More Answers (0)

Categories

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

Asked:

MQH
on 18 Oct 2018

Edited:

on 18 Oct 2018

Community Treasure Hunt

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

Start Hunting!