https://nl.mathworks.com/help/wavelet/ref/modwtvar.html
modwtvar - Multiscale variance of maximal overlap discrete wavelet transform - MATLAB
This MATLAB function returns unbiased estimates of the wavelet variance by scale for the maximal overlap discrete wavelet transform (MODWT).
multiscalevariancemaximaloverlapdiscrete