Matching matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Transaction Cost Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!