hi,it' possible to plot in different color? (example : line color yellow but the last point are colored in black)

 채택된 답변

Paul
Paul 2024년 5월 2일
편집: Paul 2024년 5월 2일

0 개 추천

There may be fancy way to do it with a single line (or other type of) object, but it's easy to do it with two
t = 0:.01:1;
y = sin(2*pi*10*t);
figure
ii = find(t <= 0.35);
plot(t(ii),y(ii),'r',t(ii(end):end),y(ii(end):end),'k')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2024년 5월 2일

편집:

2024년 5월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by