Matching matrix

1 次查看(过去 30 天)
Mate 2u
Mate 2u 2012-2-10
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 个)

类别

Help CenterFile Exchange 中查找有关 Transaction Cost Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by