필터 지우기
필터 지우기

How to modify the input function to a system?

조회 수: 1 (최근 30일)
Romio
Romio 2018년 8월 30일
답변: Amir Xz 2018년 8월 31일
Hi
if I have the function x[n] = cos(2*pi*n) in 0=<n<=10 and x[n] = 0 else where
n = -20:1:20;
xn = cos(2*pi*n);
xn(n<0) = 0 ;
xn(n>10) = 0 ;
stem(n,xn)
How will I create the output using the previous input x[n], for example z[n] = 3x[n+3] + 5x^2[5] ?

답변 (1개)

Amir Xz
Amir Xz 2018년 8월 31일
1. Left Shift:
xn(end+1:end+3)=xn(1:3); xn(1:3)=[];
2. New signal:
y = 3*xn + 5*xn(5)^2;

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by