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 2-D and 3-D Plots 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!