![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/708197/image.png)
Problem declaring a signal.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mattias Eek
am 10 Aug. 2021
Beantwortet: Mattias Eek
am 15 Aug. 2021
I am a beginner in MATLAB and I'm studying for a test in Signal Processing and don't know how to tackle this some parts of this problem: "Using Matlab, convolve the two discrete-time signals: x1=(1/3)*(δ[n−1]+δ[n]+δ[n+1]) and x2 given by signal2.mat. Store the convolution (x1∗x2) in the variable x."
signal2.mat only contain the variable n which is an interval from -10 to 10 with a step of 1 and x2 which contain 21 random values.
I don't know what delta represents in x1 and how to implement/declare it in MATLAB. Any help is appreciated! I know what to do after I've declared x1, so further help than that is not needed!
1 Kommentar
Star Strider
am 10 Aug. 2021
The reference to
is most likely the Dirac delta function, described in the Symbolic Math Toolbox dirac function.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/708197/image.png)
.
Akzeptierte Antwort
Sahil Jain
am 13 Aug. 2021
The "δ[n]" generally refers to the Dirac delta function. The following code will help you generate the required signal.
n=-10:1:10;
x1=(1/3)*(dirac(n-1)+dirac(n)+dirac(n+1));
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Matched Filter and Ambiguity Function 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!