How do you compute a convolution of u(n) and n*u(n)??? Matlab is going crazy!!!!
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Here is my code:
syms n;
x=(.5)^n*heaviside(-n-1);
y=(1/3)^n*heaviside(n);
H=conv(x,y)
1 Kommentar
Image Analyst
am 7 Aug. 2016
Bearbeitet: Image Analyst
am 7 Aug. 2016
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".
Antworten (1)
Sharmila Raghu
am 12 Aug. 2016
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 Kommentare
Siehe auch
Kategorien
Mehr zu Numbers and Precision finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!