필터 지우기
필터 지우기

How to make manual upsampling?

조회 수: 1 (최근 30일)
Carlos Martínez
Carlos Martínez 2016년 8월 18일
I want to add a zeros vector each "w" elements of a given vector.
fs=20;
N=50;
T=1/fs;
n=0:1:N-1;
x = exp(-0.5*n*T).*sin(2*pi*n*T);
A=zeros(1,M);
for i = length(x)
y()=A %Here is where I don't know that to do
end
stem(y)
So As an example if M=2, A=[0 0 0] and if x=[1 2 3] with w=1.
y=[1 0 0 0 2 0 0 0 3 0 0 0];

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by