필터 지우기
필터 지우기

Equation Implementation in Matlab

조회 수: 1 (최근 30일)
Jes
Jes 2014년 10월 9일
답변: Star Strider 2014년 10월 9일
I have a vector X of 200*1 w=[1 2 3 4 5]
up(n)=summation(k=1to5) w* X(n-k)
Explanation for n=1, X should take previous five samples, X(200),X(199)...X(196) and iiy for n=2 and goes on
  댓글 수: 1
José-Luis
José-Luis 2014년 10월 9일
Please try to read your own question from the perspective of someone who has no idea what you are doing.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2014년 10월 9일
I am not certain if a matrix-vector product or convolution/filter is what you are doing.
Does this do what you want:
X = randi(50, 200, 1);
w=[1 2 3 4 5];
Xr = reshape(X, [], 5);
up = Xr*w';
It creates ‘up’ as a (40x1) vector.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Array and Matrix Mathematics에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by