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
답변 (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에서 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!