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.
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 .
Thanks, just what I wanted !
Can this be easily modified for angles in the y-z plane?
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.
span(2) = span(2) + 2*pi;
before theta = ...
Worked well for me. Thank you!
Inspired by: Draw a circle.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!