필터 지우기
필터 지우기

How do I code to input x[n]signal to -1 or 1 for 0<n<10000 (arbitary output) digital signal processing Matlab

조회 수: 2 (최근 30일)
plz i can send you some bitcoin
  댓글 수: 2
Sung Hun Park
Sung Hun Park 2020년 6월 1일
so,
i make input x[n] data (1or -1) for random 10000 data.
some impulse response h[n] (low pass filter) i use
and i will find output y[n]
and i want to know how to make those things and some useful code...
thanks

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

답변 (1개)

Nikhil Sonavane
Nikhil Sonavane 2020년 6월 1일
You can use the following code-
N=10000;
x=randi([0,1],N,1);
for i=1:N
if (x(i)==0)
x(i)=-1;
end
end

카테고리

Help CenterFile Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by