The stats toolbox provides a function to calculate the geometric mean of an array, but a function for the geometric standard deviation is oddly missing.
Here is a function to fill that void, with no toolbox required.
The function accepts a vector, matrix or N-D array; an optional flag to normalise by N or (N-1); and an optional dimension to calculate the gsd across.
Richie Cotton (2021). Geometric standard deviation (https://www.mathworks.com/matlabcentral/fileexchange/10397-geometric-standard-deviation), MATLAB Central File Exchange. Retrieved .
It works very good
Not much to say here. Its a simple tool that does its job nicely. Well commented, error checks, worries about log of zero, etc.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!