MATLAB: Do i get rid of this error using cumsum saying ‘dimension argument must be positive integer scalar within indexing range

cumsumcumsumerror

I am trying to get the cumulative return of four trading strategies using cum sum and it is giving me the error in the screen shot, how do i get rid of it?
Thanks

Best Answer

May be so?
cumu_ret_is= cumsum([d_pretbm_is,d_pretl_is,d_pret2_is,d_pret3_is])
Related Question