Calculating within-month standard deviation from daily return data
이전 댓글 표시
I have imported a matrix with 2 columns into matlab. The 1st column is serial date number (not date string) and the 2nd column is daily returns from 1996-2014. I wish to calculate the standard deviation within each month, but the window lengths from month to month are different.
Please kindly help provide me the detailed scripts to do so as I'm new to matlab and I will need to do the same thing to 19 other institutions.
댓글 수: 1
Guillaume
2014년 9월 17일
Unless you're willing to pay somebody, it's very unlikely you'll get a detailed script from here (Note I'm not offering).
채택된 답변
추가 답변 (1개)
Steven Lord
2019년 4월 9일
0 개 추천
Since this message was originally written we've introduced the timetable data type. I'd store the data in a timetable and call retime on the timetable, specifying 'monthly' as the value for the newTimeStep input and @std as the method input.
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!