How do I plot a semicircle with lines at the maxima?

Going along an axis 'r' the bottom of a semicircle is plotted, how do I make the maximum points continue along parallel to the axis for a stated length?

 채택된 답변

Paul Hill
Paul Hill 2015년 5월 4일
편집: Paul Hill 2015년 5월 4일
I ended up solving this problem myself, where 'z' is defined as the arc of a semicircle and 'h' being the height with which the arc was to stop and level out with lines;
depth = min(z)+ h;
z(z>(depth)) = (depth);
plot(z)

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2015년 4월 30일

편집:

2015년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by