How to code signals? how would you code y[n] = x[n] + 0.4x[n-4096]?

조회 수: 1 (최근 30일)
Paula Penullar
Paula Penullar 2020년 9월 18일
답변: Abhishek Gupta 2020년 9월 23일
%sound experianced: y[n] = x[n] + 0.4x[n-4096]
%use sound file handel.mat .... sampled at 8192 samples/sec
%compare with signal observed in the concert hall
I am to use y[n] and compare it to handel.mat. How would I code y[n]? I tried :
y= [0 zeros(1,1)]+ 0.4*[0 0 4096]; %y[n] = x[n] + 0.4x[n-4096]
but that was wrong
  댓글 수: 1
John D'Errico
John D'Errico 2020년 9월 18일
You probably need first to learn that MATLAB indexing uses parens, thus (), not square brackets, [].

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

답변 (1개)

Abhishek Gupta
Abhishek Gupta 2020년 9월 23일
Hi,
Referring to the following documentation link, which might help you in resolving the issue: -https://www.mathworks.com/help/matlab/matlab_prog/matlab-operators-and-special-characters.html

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by