view dsp/frames.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
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');