How to code signals? how would you code y[n] = x[n] + 0.4x[n-4096]?
1 回表示 (過去 30 日間)
古いコメントを表示
%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
2020 年 9 月 18 日
You probably need first to learn that MATLAB indexing uses parens, thus (), not square brackets, [].
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で AI for Signals についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!