diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tfscale.m	Sat Jan 17 15:20:35 2015 +0000
@@ -0,0 +1,13 @@
+function [t,f]=tfscale(fs,N,m,size);
+% TFSCALE: time and frequency scales for tfds
+% [t,f]=tfscale(fs,block,hop,size)
+%	fs:	sampling rate in Hz
+%	block:	frame size for FFT - determines frequency resolution
+%	hop:		hop size - determines time resolution
+%  size:		[height width] of tfd matrix - determines extents
+
+w=size(2);
+h=size(1);
+t=[0 (w-1)*m/fs];
+f=[0 (h-1)*fs/N];
+