


SETFREQ sets the frequency vector of a fsdata object based on the length of the xx vector and the sample rate. M Hewitson 31-01-07 $Id: setFreq.html,v 1.2 2007/07/10 05:37:10 hewitson Exp $


0001 function fsd = setFreq(fsd) 0002 0003 % SETFREQ sets the frequency vector of a fsdata object based on the length of 0004 % the xx vector and the sample rate. 0005 % 0006 % M Hewitson 31-01-07 0007 % 0008 % $Id: setFreq.html,v 1.2 2007/07/10 05:37:10 hewitson Exp $ 0009 % 0010 0011 fsd.f = linspace(0, fsd.fs/2, length(fsd.xx)); 0012 fsd = reshapeF(fsd); 0013 0014 % END