RESHAPEF reshape the frequency vector to match the xx vector. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: RESHAPEF reshape the frequency vector to match the xx vector. CALL: fsd = reshapeF(fsd) INPUT: fsd - frequency-series object OUTPUT fsd - the reshaped frequency-series object VERSION: $Id: reshapeF.m,v 1.2 2007/07/18 13:58:44 ingo Exp $ HISTORY: 31-01-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function fsd = reshapeF(fsd) 0002 % RESHAPEF reshape the frequency vector to match the xx vector. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: RESHAPEF reshape the frequency vector to match the xx vector. 0007 % 0008 % CALL: fsd = reshapeF(fsd) 0009 % 0010 % INPUT: fsd - frequency-series object 0011 % 0012 % OUTPUT fsd - the reshaped frequency-series object 0013 % 0014 % VERSION: $Id: reshapeF.m,v 1.2 2007/07/18 13:58:44 ingo Exp $ 0015 % 0016 % HISTORY: 31-01-2007 M Hewitson 0017 % Creation 0018 % 0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0020 0021 if size(fsd.f, 1) ~= size(fsd.xx,1) 0022 fsd.f = [fsd.f].'; 0023 end 0024 if size(fsd.f, 1) ~= size(fsd.xx,1) 0025 error('### frequency and data vectors are not the same length.'); 0026 end 0027 0028 0029 % END