필터 지우기
필터 지우기

how to make a single plot with different colors?

조회 수: 2 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2013년 4월 17일
x=1:10;
y=1:10;
plot(x,y)
How to make one color from 1 to 5 ,,,and 6 to 10 another plot?

채택된 답변

Iman Ansari
Iman Ansari 2013년 4월 17일
Hi
x=1:10;
y=1:10;
plot(x(1:5),y(1:5),'r')
hold on
plot(x(5:10),y(5:10),'g')

추가 답변 (0개)

카테고리

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