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

6 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Paul Hill
Paul Hill il 4 Mag 2015
Modificato: Paul Hill il 4 Mag 2015
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)

Più risposte (1)

Thorsten
Thorsten il 30 Apr 2015
You can use
line
to draw a line.

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by