Convolution
Discrete time convolution takes two discrete time signals as input and gives a discrete time signal as output.
Syntax:
[y,n] = convolution(x1,n1,x2,n2);
where
x1 - values of the first input signal - should be a row vector
n1 - time index of the first input signal - should be a row vector
x2 - values of the second input signal - should be a row vector
n2 - time index of the second input signal - should be a row vector
Example:
x1 = [2 6 4 9];
n1 = [2 3 4 5];
x2 = [2 7 5];
n2 = [8 9 10];
[y,n] = convolution(x1,n1,x2,n2); will give the following output-
y = [4 26 60 76 83 45];
n = [10 11 12 13 14 15];
Obviously, value set 'x' and index set 'n' of any signal should have the same size. Otherwise the code will throw an error.
Cita come
Sujeeth Kumaravel (2025). Convolution (https://it.mathworks.com/matlabcentral/fileexchange/48401-convolution), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
convolution/
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
