Using For Loop in a function over all files in a folder with Matlab

1 次查看(过去 30 天)
Dear Matlab Users,
I want to use for loop in a function over all files in a folder.
I want to apply the genhurst function over all files in a folder.
H = genhurst(S)
where S is the time series with 1*6154 vector.
In a folder, I have 20 excel files having 2 columns in each file. The first column represent the date whereas the 2nd column represent the time series. Further, I want to calculate the monthly average of the estimated values for each time series.
Please help me to loop this function, and take the monthly average of the estimated hurst values over all the files in a folder.
Thank you.

回答(1 个)

Star Strider
Star Strider 2019-10-23
This seems to refer to the Hurst exponent.
See the File Exchange contribution Calculate Complex Hurst.

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by