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.3 2007/07/18 13:58:45 ingo Exp $ HISTORY: 31-01-07 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function xy = reshapeX(xy) 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.3 2007/07/18 13:58:45 ingo Exp $ 0011 % 0012 % HISTORY: 31-01-07 M Hewitson 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 if size(xy.x, 1) ~= size(xy.y,1) 0018 xy.x = [xy.x].'; 0019 end 0020 0021 % END