4.5 | 2 ratings Rate this file 20 Downloads (last 30 days) File Size: 1.29 KB File ID: #21940
image thumbnail

Plot the angle arc for some angle.



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

| Watch this File

File Information

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.


Draw A Circle. inspired this file.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
14 Nov 2012 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;
before theta = ...

18 May 2011 Sadik

Sadik (view profile)

Worked well for me. Thank you!

Contact us