Home > classes > @fsdata > setFreq.m

setFreq

PURPOSE ^

SETFREQ sets the frequency vector of a fsdata object based on the length of

SYNOPSIS ^

function fsd = setFreq(fsd)

DESCRIPTION ^

 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.1 2007/06/08 14:15:05 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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.1 2007/06/08 14:15:05 hewitson Exp $
0009 %
0010 
0011 fsd.f = linspace(0, fsd.fs/2, length(fsd.xx));
0012 fsd = reshapeF(fsd);
0013 
0014 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003