필터 지우기
필터 지우기

Create new matrix through rolling window

조회 수: 1 (최근 30일)
pavlos
pavlos 2019년 7월 14일
Hello,
Please help me with the following:
Consider a matrix A 365x24.
I need to create different matrices that are formed in rolling window
approach:
For the element n of A, newmatrix 1 should include the previous 9 elements, i.e. elements
n-1
n-2
...
n-9
For element n+1 of A, newmatrix 2
n
n-1
...
n-8
For element n+2 of A, newmatrix 3
n+1
n
n-1
...
n-7
etc.
Thank you.
Best,
Pavlos

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by