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 件のコメント
回答 (1 件)
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!