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

1 回表示 (過去 30 日間)
plz i can send you some bitcoin
  2 件のコメント
Nikhil Sonavane
Nikhil Sonavane 2020 年 6 月 1 日
Can you explain your question in a more detailed way?
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
  2 件のコメント
Sung Hun Park
Sung Hun Park 2020 年 6 月 1 日
plz one more ....question
how do i code dft x[n] without fft ??
plz...

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet 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