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

6 次查看(过去 30 天)
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 个)

Thorsten
Thorsten 2015-4-30
You can use
line
to draw a line.

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by