view dsp/specfilt.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +0000
parents c3b0cd708782
children
line wrap: on
line source
% specfilt
function Y=specfilt(X,S,varargin)
	args=varargin;
	Y=zipwith(@specfiltf,S,X);

	function Y=specfiltf(x,s), 
		Y=unbuffer(ipowspec(s,phasespec(x)),args{:}); end
	end
end