필터 지우기
필터 지우기

can anybody help me with tthis function ???

조회 수: 2 (최근 30일)
Sony
Sony 2013년 5월 3일
function [out]=remTrend(sig,winSize)
window=ones(winSize,1); %window(winSize/2-3:winSize/2+3)=0; rm=conv(sig,window); rm=rm(winSize/2:length(rm)-winSize/2);
norm=conv(ones(size(sig)),window); norm=norm(winSize/2:length(norm)-winSize/2);
rm=rm./norm; out=sig-rm; return; this code constructs the value that gets written into winSize ,i need 2 change the function such that it only allows even numbers or winSize to be evn
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 5월 3일
What do you want it to do if the winSize passed in is odd or zero ?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by