How do you compute a convolution of u(n) and n*u(n)??? Matlab is going crazy!!!!
3 ビュー (過去 30 日間)
古いコメントを表示
Here is my code:
syms n;
x=(.5)^n*heaviside(-n-1);
y=(1/3)^n*heaviside(n);
H=conv(x,y)
1 件のコメント
Image Analyst
2016 年 8 月 7 日
編集済み: Image Analyst
2016 年 8 月 7 日
Edited -- I fixed your formatting.
Why is it going crazy? What is u (x or y) and what is n*u (x or y)? You are aware that convolution flips one of the arrays, right? And you are aware that there are several "edge effects" options (same, full, valid), right? So what's the problem? Explain what you mean by "crazy".
回答 (1 件)
Sharmila Raghu
2016 年 8 月 12 日
Please refer to the solution provided in the following link for more information :
Also,"conv" accepts only vectors of type single and double as inputs.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!