view dsp/frames.m @ 32:c3b0cd708782

Imported core dsp tools.
author samer
date Sun, 20 Jan 2013 13:48:47 +0000
parents
children
line wrap: on
line source
function X=frames(Y,N,H)
% frames - Buffer signal, like buffer, but using hop instead of overlap
%
% frames :: 
% 	  [[T]]   	~ 'signal to buffer', 
% 	  N:natural	~ 'frame size',
% 	  M:natural	~ 'hop size'
% -> [[N,L]] ~ 'array of frames' :- L=ceil((T-N)/M).

X=buffer(Y,N,N-H,'nodelay');