Mercurial > hg > ishara
annotate 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 |
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 |