Mercurial > hg > ddm
view win_mod_poly.m @ 0:a4a7e3405062
Import DDM code by Sašo Muševič
author | Dan Stowell <dan.stowell@elec.qmul.ac.uk> |
---|---|
date | Thu, 09 May 2013 20:04:15 +0100 |
parents | |
children |
line wrap: on
line source
function wmp = win_mod_poly(N, t, poly, w) R = size(poly,1); ply_val = zeros(N,R); w_mat = repmat (w, 1, R); for k = 1:R ply_val(:,k) = polyval(poly(k,:),t).'; end wmp = sum (w_mat.*exp(ply_val),1); end