Draws two dimensional vectors on Matlab figures. Uses complex numbers. Example provided. Should be used in conjunction with 'export_fig' for high quality output. For each vector, start point, end point, arrow head length, arrow tip angle, colour, & line width are specified. If pol2rec(magnitude, angle) also downloaded, can take vector start/end point in polar form.
How it works: arrow head is 250 carefully placed lines at right angle to vector, finishing at end point of vector.
Scott Williams (2021). polarG(start_complex,end_complex,arrow_length,arrow_angle,colour_code,line_width) (https://www.mathworks.com/matlabcentral/fileexchange/53261-polarg-start_complex-end_complex-arrow_length-arrow_angle-colour_code-line_width), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: export_fig
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!