perform the convolution by using matlab

1 回表示 (過去 30 日間)
Yousef da
Yousef da 2022 年 1 月 27 日
回答済み: C PRASAD 2022 年 1 月 27 日
Given:
1. 𝒙(𝒏) = [𝟏 𝟐 𝟑 𝟓 𝟕 𝟗 𝟒] 𝒂𝒏𝒅 𝒉(𝒏) = [−𝟏 𝟐 − 𝟑]
2. 𝒙(𝒏) = [𝟏 𝟒 𝟔 𝟕 𝟖 𝟑 𝟓 𝟐] 𝒂𝒏𝒅 𝒉(𝒏) = [𝟏 𝟏 𝟏 𝟏]
you are required to:
• Performing the convolution to find a y(n). Then, proved the h(n) value by performing the deconvolution by using MATLAB software, you are required to: Show the coding for convolution function In each question, attached 3 figures for x(n), h(n) and y(n)

回答 (1 件)

C PRASAD
C PRASAD 2022 年 1 月 27 日
x=[1 2 3 5 7 9 4]
h=[-1 2 -3]
y=conv(x,h)
subplot(411),stem(x),title('x(n)')
subplot(412),stem(h),title('h(n)')
subplot(413),stem(y),title('y(n)')
h1=deconv(y,x)
subplot(414),stem(h1),title('h(n) by deconvoltion')

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by