How to handle polynomial expansion in MATLAb

조회 수: 1 (최근 30일)
Fred
Fred 2013년 7월 9일
Dear all;
I have two vectors Z(m*1) and S(n*1) (Z is my data and S are coefficients from another formula) and I want to adjust Z values by some type of differencing like this:
H(i)=Z(i)-0.3*Z(i-1)-0.105*Z(i-2)-0.059*Z(i-3)-...
S=[0.3 0.105 0.059 ...]
I don't know how should I handle both S and Z with different dimensions? I appreciate your help

채택된 답변

Matt J
Matt J 2013년 7월 9일
편집: Matt J 2013년 7월 9일
H=filter([1,-S],0 , Z);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by