Filling in secondly intervals between 15:30:00 to 22:00:00 (require more efficient method)
Mostra commenti meno recenti
I have data in the form of
Hi all I have prices which change every 15 seconds throughout the whole day.
I want to make the the price secondly rather than every 15 seconds. This is so that I can compare it to another second-second data.
Here is a sample of my data:
'26/01/2012 15:29:39' 168.008200000000
'26/01/2012 15:29:54' 168.042200000000
'26/01/2012 15:30:09' 168.022300000000
'26/01/2012 15:30:24' 167.964000000000
'26/01/2012 15:30:39' 167.968800000000
'26/01/2012 15:30:54' 167.964000000000
'26/01/2012 15:31:09' 167.973700000000
'26/01/2012 15:31:24' 167.954700000000
Like I said I want the data to be second-second from 15:30:00 to 22:00:00. So for example:
From the period of 15:30:00 - 15:30:09 we would maintain a price of 168.0422
Then from the period of 15:30:09 to 15:30:24 we would maintain a price of 168.0223 secondly.
I hope I have explained this well and I look forward to all replies.
The "raw" data is calculated 15 seconds and even go beyond 22:00 and is irregular.
"" The program would need to take any data in the form of below and then just give secondly prices from 15:30:00 - 22:00:00.
Thanks
6 Commenti
Mate 2u
il 4 Apr 2012
Jan
il 4 Apr 2012
Please do not post multiple threads for one problem. See: http://www.mathworks.com/matlabcentral/answers/34419-filling-in-secondly-time-intervals-between-15-30-00-to-22-00-00
Did you try my answer of your first thread before deleting it?
Mate 2u
il 4 Apr 2012
Jonathan Sullivan
il 4 Apr 2012
It usually helps the community to have a record of what you have tried already.
Thomas
il 4 Apr 2012
Another thought: why do you just reduce the other value you are comparing this data set to, to be every 15 seconds..
Mate 2u
il 4 Apr 2012
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Financial Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!