Mercurial > hg > ishara
view dsp/sinewin.m @ 36:9e7be347b3a0
Renamed sequence classes to avoid clashes with seq methods;
Fixed default slicing dimension while retaining behaviour of window.m;
Updated use of sequences in dsp/synth.
author | samer |
---|---|
date | Thu, 24 Jan 2013 14:51:23 +0000 |
parents | c3b0cd708782 |
children |
line wrap: on
line source
function y = sinewin(N) % SINEWIN Sine window. % y = sinewin(N) % % Used in MDCT transform for TDAC % Maximum length, maximum overlap sine window % % N: length of window to create % y: the window in column % ------- sinewin.m ---------------------------------------- % Marios Athineos, marios@ee.columbia.edu % http://www.ee.columbia.edu/~marios/ % Copyright (c) 2002 by Columbia University. % All rights reserved. % ---------------------------------------------------------- x = (0:(N-1)).'; y = sin(pi*(x+0.5)/N);