MATLAB: How to change the line color in a graph using plot

graph

How can I change the line color in a graph using plot? any one please reply
——– vivek overtrade

Best Answer

vivek, check out the doc for starters, e.g.
x = 0:0.1:5;
y = sin(x);
plot(x,y,'r-o')