Hi, I have problem with convolution. The script doesnt work on mine.
Ältere Kommentare anzeigen
i'm trying to use [n,ny]=conv(x,nx,h,nh), but its said that i've input too much argument.
Here's my whole scripts
x = [3 11 7 0 -1 4 2];
nx = [-3:3];
h = [2 3 0 -5 2 1];
nh = [-1:4];
[n,ny]=conv(x,nx,h,nh)
I couldnt find anything wrong from my script, kindly help me please. Thank you
1 Kommentar
Guillaume
am 14 Nov. 2018
I couldnt find anything wrong from my script
You seem to have invented your own definition of the conv function. For us to tell youl which function you should actually use, you would have to tell us what that definition is. I have no idea what your nx and nh are supposed to represent.
Also, note that
nx = [-3:3];
is exactly the same (but slightly slower) as:
nx = -3:3;
The brackets are unnecessary.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!