view graphics/tfscale.m @ 53:3ba80c9914ff

Minor doc fix, added .class to .hgignore
author samer
date Mon, 02 Feb 2015 10:47:55 +0000
parents 82075c94eed1
children
line wrap: on
line source
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];