필터 지우기
필터 지우기

CONVOLUTION OF A SIGNAL WITH WINDOW FUNCTION

조회 수: 15 (최근 30일)
lamawal Jonathan
lamawal Jonathan 2014년 12월 1일
댓글: lamawal Jonathan 2014년 12월 4일
hello everybody! pls, help, HOW DO I PERFORM CONVOLUTION ON A SIGNAL WITH WINDOW FUNCTION OF WINDOW LENGTH 10msc.
  댓글 수: 1
lamawal Jonathan
lamawal Jonathan 2014년 12월 1일
x= my signal
L= 80;%my window length of 10msec corresponds to 80 data point
w= ones(L,1); % using a rectangular window
conv_Signal = x * w; %convolution operation. but the output display the following error message Error using * Inner matrix dimensions must agree.
Error in AiAssignment (line 47) conv_Signal = x * w;. pls, can anyone help. i can't figure the problem with my code. thanks

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

채택된 답변

Image Analyst
Image Analyst 2014년 12월 1일
편집: Image Analyst 2014년 12월 1일
star or star star is the convolution operator only in textbooks. In MATLAB you call a function to do convolution. Do this:
conv_Signal = conv(x, w, 'same');
You can also use 'valid' or 'full' depending on how you want to handle edge effects. If you want the moving average rather than the straight, standard convolution, use w/L as the second argument.
  댓글 수: 2
lamawal Jonathan
lamawal Jonathan 2014년 12월 2일
thanks man this was really helpful. i'm learning matlab for the first time so i'm yet to get use to most of the basics.
lamawal Jonathan
lamawal Jonathan 2014년 12월 4일
Hello! pls, can u help? i need some assistance with K-fold validation. i have three data set("EL", "MK", "Z0") each of which is a 1X1 matrix of length 20 data point. out of the 20 data, the first 10 data is silence audio and the last 10 data is speech audio. my required task is to perform K-fold validation with K=10. i'm further advised to split the data set into training and test sets keeping the training set balanced, with half "Speech" and half "Silence" audio samples. how can i approach this? any help will be deeply appreciated. thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Generation and Preprocessing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by