comparison m-toolbox/classes/@tsdata/growT.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % GROWT grows the time (x) vector if it is empty.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: GROWT grows the time (x) vector if it is empty.
5 %
6 % CALL: d = growT(d)
7 %
8 % INPUT: d - tsdata object
9 %
10 % OUTPUT: d - tsdata object
11 %
12 % VERSION: $Id: growT.m,v 1.5 2011/02/18 16:48:55 ingo Exp $
13 %
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16 function varargout = growT(varargin)
17
18 d = varargin{1};
19
20 %%% decide whether we modify the pz-object, or create a new one.
21 d = copy(d, nargout);
22
23 % Grow the time vector
24 d.setX(linspace(0, d.nsecs-1/d.fs, d.nsecs*d.fs));
25
26 varargout{1} = d;
27 end
28