필터 지우기
필터 지우기

convolution of two signals

조회 수: 53 (최근 30일)
Yuvashree Mani Urmila
Yuvashree Mani Urmila 2014년 6월 12일
답변: Sandeep Maurya 2017년 8월 28일
I have two signals represented by x and y values respectively. I have to find the convolution between the two signals. I am attaching the graph plotted from the two signals. can someone help. Thanks.

답변 (4개)

José-Luis
José-Luis 2014년 6월 12일
You could use the conv() function. It seems to do exactly what you want.
conv(x,y)
Please read the documentation.
doc conv
  댓글 수: 4
Yuvashree Mani Urmila
Yuvashree Mani Urmila 2014년 6월 13일
thanks for your help after importing the data i have four sets of values. but in conv function i have to input the two signals(signal 1 and signal 2) i suppose. but how to represent the x and y values as signal 1 and signal 2
José-Luis
José-Luis 2014년 6월 13일
Use conv() two times? I am sorry but I don't understand.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2014년 6월 13일
numbers = xlsread(excelFullFileName);
x1 = numbers(:, 1); % x1 assumed to be in column 1.
y1 = numbers(:, 2); % y1 assumed to be in column 2.
x2 = numbers(:, 3); % x2 assumed to be in column 3.
y2 = numbers(:, 4); % y2 assumed to be in column 4.
out1 = conv(x1,y1);
out2 = conv(x2,y2);

Shahin Alam
Shahin Alam 2017년 1월 4일
편집: Image Analyst 2017년 1월 4일
x=[1,1,1];
y=[1,1,1];
How can I find its convolution ?
  댓글 수: 1
Image Analyst
Image Analyst 2017년 1월 4일
output = conv(x, y, 'full');
plot(output, 'bo-', 'LineWidth', 2);
grid on;

댓글을 달려면 로그인하십시오.


Sandeep Maurya
Sandeep Maurya 2017년 8월 28일
x=input('Enter x: ') h=input('Enter h: ') m=length(x); n=length(h); X=[x,zeros(1,n)]; H=[h,zeros(1,m)]; for i=1:n+m-1 Y(i)=0; for j=1:m if(i-j+1>0) Y(i)=Y(i)+X(j)*H(i-j+1); else end end end Y stem(Y); ylabel('Y[n]'); xlabel('----->n'); title('Convolution of Two Signals without conv function');

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by