I want to show dotted line between 81 to 85, how can i show it.

 채택된 답변

Sam Chak
Sam Chak 2022년 5월 12일
편집: Sam Chak 2022년 5월 12일

1 개 추천

Suggest a simple solution:
t1 = 70:81;
t2 = 81:85;
t3 = 85:100;
plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, 'b')

추가 답변 (1개)

Vartika Agarwal
Vartika Agarwal 2022년 5월 12일

0 개 추천

I want to draw marker at particular point
73,77,81,85,89,93,100

댓글 수: 3

Alright, can do this way, but you are encouraged to explore how to display the plot.
d = [73, 77, 81, 85, 89, 93, 100];
plot(d, d, 'd')
hold on
t1 = 70:81;
t2 = 81:85;
t3 = 85:100;
plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, 'b')
hold off
Vartika Agarwal
Vartika Agarwal 2022년 5월 12일
Thanks sir for your help
Sam Chak
Sam Chak 2022년 5월 12일
Hi @Vartika Agarwal, don't mention it. Have a nice day!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

제품

태그

질문:

2022년 5월 12일

댓글:

2022년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by