For Loop-Specific Dates
Mostrar comentarios más antiguos
I want to do rolling window regression between specific dates, for example, from 31.01.2015-28.02.2015 then 28.02.2015-31.03.2015.. etc. (between end of the days of every month).
My dataset's first column consists of dates (with serial numbers format in Matlab)
How can I write the code?
Thank you very much,
Respuestas (3)
Andrei Bobrov
el 2 de Oct. de 2016
Editada: Andrei Bobrov
el 2 de Oct. de 2016
dte = datenum(2015,1,(1:sum(yeardays(2002:2015)))');
[~,~,dv] = datevec(dte);
t = dv == 1;
ii = cumsum([t(2:end);0]);
meral serçe
el 2 de Oct. de 2016
0 votos
Categorías
Más información sobre Linear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!