annotate graphics/tfscale.m @ 47:82075c94eed1

adding a bunch of stuff, including graphics and pitch toolboxes.
author samer
date Sat, 17 Jan 2015 15:20:35 +0000
parents
children
rev   line source
samer@47 1 function [t,f]=tfscale(fs,N,m,size);
samer@47 2 % TFSCALE: time and frequency scales for tfds
samer@47 3 % [t,f]=tfscale(fs,block,hop,size)
samer@47 4 % fs: sampling rate in Hz
samer@47 5 % block: frame size for FFT - determines frequency resolution
samer@47 6 % hop: hop size - determines time resolution
samer@47 7 % size: [height width] of tfd matrix - determines extents
samer@47 8
samer@47 9 w=size(2);
samer@47 10 h=size(1);
samer@47 11 t=[0 (w-1)*m/fs];
samer@47 12 f=[0 (h-1)*fs/N];
samer@47 13