- Are there missing data or are all one-minute values present?
- What's the output--a given sample at 5-minute intervals, average, max/min, ...?
How do I create a time stamp with 5 minutes interval?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
angelavtc
el 24 de Abr. de 2016
Comentada: dpb
el 24 de Abr. de 2016
Hi everyone! I still trying to solve the next problem, sorry for too much asking but I really need to solve this:
I have two columns column A are dates and times and column B are prices. Column A is in Matlab format and looks like this:
[02-Jan-1990 10:09:00
02-Jan-1990 10:10:00
02-Jan-1990 10:11:00
02-Jan-1990 10:12:00 ...]
And column B:
[353.400
353.2500
353.0200
352.9700
...]
I need to rearrange A column so it gives me the prices in 5 minutes intervals and the corresponding price B (now I have them for every minute).
Column A goes from 1990 until 2016 so the calculation has to consider changes in days, months and years.
Thanks a lot for your help!
2 comentarios
dpb
el 24 de Abr. de 2016
Respuesta aceptada
Azzi Abdelmalek
el 24 de Abr. de 2016
A(1:5:end)
B(1:5:end)
5 comentarios
dpb
el 24 de Abr. de 2016
Learn to use the {}Code button to format your code (or simply begin the code section w/ a new paragraph and two blanks on first line); no sense we should have to clean it up for you...
As for the follow-up
R=[0; diff(log(s))];
no loop needed.
Well, there's a new rub on the time; what do you mean by moving window stop[s] when the day finish[es]"? What happens for the next and subsequent days? You don't define the problem in its entirety at the beginning but keep adding bits 'n pieces...
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!