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

조회 수: 8 (최근 30일)
vivek
vivek 2014년 7월 23일
댓글: vivek 2014년 7월 23일
How can I change the line color in a graph using plot? any one please reply
-------- vivek overtrade

채택된 답변

Mischa Kim
Mischa Kim 2014년 7월 23일
vivek, check out the doc for starters, e.g.
x = 0:0.1:5;
y = sin(x);
plot(x,y,'r-o')

추가 답변 (1개)

SRI
SRI 2014년 7월 23일
T = 0:0.1:10;
Y = sin(T.*pi);
plot(y,'r')
Hi vivek Just try this

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by