Why do i get rid of this error using cumsum saying 'dimension argument must be positive integer scalar within indexing range?
2 views (last 30 days)
Show older comments
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
1 Comment
Accepted Answer
Andrei Bobrov
on 26 Oct 2017
Edited: Andrei Bobrov
on 26 Oct 2017
May be so?
cumu_ret_is= cumsum([d_pretbm_is,d_pretl_is,d_pret2_is,d_pret3_is])
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing 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!