File Exchange

image thumbnail

Detrended fluctuation analysis (DFA)

version 1.0.0.0 (1.48 KB) by Martin Magris
Function and examples for running DFA

30 Downloads

Updated 29 Jun 2018

View License

DFA implementation for determining the scaling coefficient characterizing the self affinity of the input data. For the interpretation of the outputs and algorithm overview see (e.g.) Peng et al., 1996.

Cite As

Martin Magris (2021). Detrended fluctuation analysis (DFA) (https://www.mathworks.com/matlabcentral/fileexchange/67889-detrended-fluctuation-analysis-dfa), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Eva

Martin Magris

@Mateusz yes, your procedure looks correct

Mateusz Solinski

Hello,

I would like to calculate scaling exponents alpha1 and alpha2 using this function.
If my calculations are corrected?

alpha1=polyfit(ln(4:16),lf(4:16),1);
alpha2=polyfit(ln(16:64),lf(16:64),1);

Alpha1=alpha1(1);
Alpha2=alpha2(1);

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

Community Treasure Hunt

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

Start Hunting!