File Exchange

image thumbnail

Plot the angle arc for some angle.

version 1.0.0.0 (1.29 KB) by Husam Aldahiyat
Similar to plotting a circle, only plots an arc based on its centre, radius and angle span.

9 Downloads

Updated 30 Oct 2008

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.

Cite As

Husam Aldahiyat (2021). Plot the angle arc for some angle. (https://www.mathworks.com/matlabcentral/fileexchange/21940-plot-the-angle-arc-for-some-angle), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Nina Ghigo

Thanks, just what I wanted !

Yu Li

Michael Grund

Alex Shaw

Alex

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

Khalid Alyhyae

very code

Barnaby Dobson

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

Worked well for me. Thank you!

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Draw a circle.

Community Treasure Hunt

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

Start Hunting!