


RESHAPEX reshape the X to match the Y vector.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: RESHAPEX reshape the X to match the Y vector.
CALL: xydata = reshape(xydata)
VERSION: $Id: reshapeX.m,v 1.4 2007/11/30 19:36:05 ingo Exp $
HISTORY: 31-01-07 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function xy = reshapeX(xy, varargin) 0002 % RESHAPEX reshape the X to match the Y vector. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: RESHAPEX reshape the X to match the Y vector. 0007 % 0008 % CALL: xydata = reshape(xydata) 0009 % 0010 % VERSION: $Id: reshapeX.m,v 1.4 2007/11/30 19:36:05 ingo Exp $ 0011 % 0012 % HISTORY: 31-01-07 M Hewitson 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 VERSION = '$Id: reshapeX.m,v 1.4 2007/11/30 19:36:05 ingo Exp $'; 0018 0019 if nargin == 2 && isa(xy, 'xydata') && ischar(varargin{1}) 0020 if strcmp(varargin{1}, 'Params') 0021 xy = plist(); 0022 return 0023 elseif strcmp(varargin{1}, 'Version') 0024 xy = VERSION; 0025 return 0026 end 0027 end 0028 0029 if size(xy.x, 1) ~= size(xy.y,1) 0030 xy.x = [xy.x].'; 0031 end 0032 0033 % END