RESHAPET reshape the time-vector to match the x vector. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: RESHAPET reshape the time-vector to match the x vector. CALL: tsdata = reshape(tsdata) VERSION: $Id: reshapeT.m,v 1.2 2007/07/18 13:58:45 ingo Exp $ HISTORY: 31-01-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function ts = reshapeT(ts) 0002 % RESHAPET reshape the time-vector to match the x vector. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: RESHAPET reshape the time-vector to match the x vector. 0007 % 0008 % CALL: tsdata = reshape(tsdata) 0009 % 0010 % VERSION: $Id: reshapeT.m,v 1.2 2007/07/18 13:58:45 ingo Exp $ 0011 % 0012 % HISTORY: 31-01-2007 M Hewitson 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 if size(ts.t, 1) ~= size(ts.x,1) 0018 ts.t = [ts.t].'; 0019 end 0020 0021 % END