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

조회 수: 1 (최근 30일)
RP
RP 2019년 10월 23일
답변: Star Strider 2019년 10월 23일
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