I have a matrix called T that is 3327×2 which represents the price of a share. I need to calculate into another matrix the mean of the last 90 days of the share price for every row. Lets say im in the cell 100×2, I need to calculate the mean of the last 90 days of the share price and so on for 101×2, 101×3,…
So I can get a matrix that is 3237×2 cause I cant calculate the mean of cell 1×1 of T(3327×2).
Best Answer