File Exchange

image thumbnail

Plot the angle arc for some angle.

version 1.0 (1.29 KB) by

Similar to plotting a circle, only plots an arc based on its centre, radius and angle span.

17 Downloads

Updated

View License

It's nothing groundbreaking but I use this all the time and thought I should share it with other knowledge seekers. The function is very helpful if you're into plotting mechanisms and various angles within one axes.

Comments and Ratings (5)

Alex

Alex (view profile)

Can this be easily modified for angles in the y-z plane?

very code

Michael

It's useful, but it can only plot arcs < 180°, in other words span=[a,b] gives the same arc as span=[b,a]. If you don't want that, add e.g.
if span(2)<span(1)
    span(2) = span(2) + 2*pi;
end
before theta = ...

Sadik

Sadik (view profile)

Worked well for me. Thank you!

MATLAB Release
MATLAB 7.4 (R2007a)
Acknowledgements

Inspired by: Draw a circle.

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video