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

1 vue (au cours des 30 derniers jours)
RP
RP le 23 Oct 2019
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.

Réponses (1)

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

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by