MATLAB Answers

Code running multiple times for different elements of a matrix

1 view (last 30 days)
Andreas S
Andreas S on 9 Oct 2020
Commented: Matt J on 10 Oct 2020
Hi everyone. I need some help to code this problem:
The data is 480x10 matrix(ret). I want to calculate the mean of each column from the past 120 elements of the same column
How can i do it with a loop and receive the results in a matrix 360x10.
  1 Comment
Matt J
Matt J on 9 Oct 2020
I think you mean,

Sign in to comment.

Accepted Answer

More Answers (0)

Community Treasure Hunt

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

Start Hunting!