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 .
Inspired by: Draw a circle.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Thanks, just what I wanted !
Can this be easily modified for angles in the y-z plane?
very code
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 = ...
Worked well for me. Thank you!