Matching matrix
1 view (last 30 days)
Show older comments
I have two matrixes, one is is a 37000x4 matrix (example below
'01/02/2012 00:00:01' 'BEST_BID' 4.25000000000000 90
'01/02/2012 00:00:01' 'BEST_ASK' 4.26000000000000 90
'01/02/2012 00:00:01' 'BEST_BID' 4.25000000000000 90
'01/02/2012 00:00:01' 'BEST_ASK' 4.26000000000000 90
'01/02/2012 00:00:16' 'BEST_BID' 4.24000000000000 90
'01/02/2012 00:00:16' 'BEST_ASK' 4.26000000000000 90
AND ANOTHER MATRIX OF 15000X4 BELOW EXAMPLE
'01/02/2012 00:00:23' 'TRADE' 4.25000000000000 0
'01/02/2012 00:00:38' 'TRADE' 4.25000000000000 0
'01/02/2012 00:00:53' 'TRADE' 4.25000000000000 0
'01/02/2012 00:01:08' 'TRADE' 4.25000000000000 0
'01/02/2012 00:01:23' 'TRADE' 4.25000000000000 0
I want to set up a N X 8 matrix which has all the original 37000x 4 elements but also adds the second matrix to first BUT for every time gap it maintains the price before t+1. I hope this is understandable
0 Comments
Answers (0)
See Also
Categories
Find more on Transaction Cost Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!