meanangle

Takes the mean of a vector of angles avoiding the 360-degree ambiguity.
1.4K Downloads
Updated 13 Apr 2005

No License

This function calculates the geometric mean of all input angles (in degrees), avoiding any 360-degree ambiguity. The input angles can be between [0 360] or [-180 180] degrees.
Example: anglemean([1 2 3 358],[0 360]) gives 1.0 as mean value.

Cite As

pascal de theije (2024). meanangle (https://www.mathworks.com/matlabcentral/fileexchange/3473-meanangle), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Antennas, Microphones, and Sonar Transducers in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Added supporting function that is called from within 'meanangle.m'.