File Exchange

image thumbnail

circular_arrow

version 1.0.0.0 (2.67 KB) by Zac Giles
This is a function designed to draw a circular arrow onto the current figure.

27 Downloads

Updated 24 Oct 2016

View License

This function will draw a circular arrow onto the figure supplied by the figure handler. The radius, angle, orientation angle, colour and arrow head type can all be specified. There is also included functionality to be able to use a double headed arrow.

Comments and Ratings (7)

Zac Giles

Hi Nathaniel. As Nshine pointed out, that line of comment in the help is incorrect. It should read " Use 1 to get a clockwise arrow -1 to get a counter clockwise arrow, 2 to get a double headed arrow and 0 to get just an arc. " I hope this solves your problem.

Why does the arrow not appear when you make ccw arrows?

Great function! An extra feature could be an option to specify the angle of the arrowhead.

Nshine

Great function. Thanks for sharing.

The example and function have a minor 'bug' due to the comments in the example. The directions settings in the example are 0=counterclockwise arrow, 1 = clockwise arrow. However the function has 0=no arrow, 1 = clockwise arrow, 2 = both arrows. Its an easy fix though.

Chris Hooper

Great thanks! Extend to 3D?

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

Inspired: 2D_Mohr_circle_new