Home > classes > @fsdata > reshapeF.m

reshapeF

PURPOSE ^

RESHAPEF reshape the frequency vector to match the xx vector.

SYNOPSIS ^

function fsd = reshapeF(fsd)

DESCRIPTION ^

 RESHAPEF reshape the frequency vector to match the xx vector.
 
 M Hewitson 31-01-07
 
 $Id: reshapeF.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 = reshapeF(fsd)
0002 
0003 % RESHAPEF reshape the frequency vector to match the xx vector.
0004 %
0005 % M Hewitson 31-01-07
0006 %
0007 % $Id: reshapeF.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $
0008 %
0009 
0010 if size(fsd.f, 1) ~= size(fsd.xx,1)
0011   fsd.f = [fsd.f].';
0012 end
0013 if size(fsd.f, 1) ~= size(fsd.xx,1)
0014   error('### frequency and data vectors are not the same length.');
0015 end
0016 
0017 
0018 % END

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