can anybody help me with tthis function ???

2 次查看(过去 30 天)
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

回答(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