필터 지우기
필터 지우기

How to plot a dotted black line (without using yline function)?

조회 수: 32 (최근 30일)
Anne Nguyen
Anne Nguyen 2019년 9월 29일
댓글: Adam Danz 2019년 9월 29일
How do I plot a horizontal dotted black line going from 0 to the maximum value of x? The height of the line should be 0. I cannot use the yline function. Thank you!
  댓글 수: 4
Adam Danz
Adam Danz 2019년 9월 29일
Darova's ide:
yln = plot([0,max(xlim())],[0,0], 'k--');
I like Rik's idea, too. Here's some background info
Adam Danz
Adam Danz 2019년 9월 29일
or,
matlab.graphics.chart.decoration.ConstantLine('InterceptAxis', 'y', 'Value', 0.5,'Parent',gca, 'LineStyle','--','Color', 'k')

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by