Mercurial > hg > ltpda
view m-toolbox/classes/@tsdata/growT.m @ 32:e22b091498e4 database-connection-manager
Update makeToolbox
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% GROWT grows the time (x) vector if it is empty. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DESCRIPTION: GROWT grows the time (x) vector if it is empty. % % CALL: d = growT(d) % % INPUT: d - tsdata object % % OUTPUT: d - tsdata object % % VERSION: $Id: growT.m,v 1.5 2011/02/18 16:48:55 ingo Exp $ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function varargout = growT(varargin) d = varargin{1}; %%% decide whether we modify the pz-object, or create a new one. d = copy(d, nargout); % Grow the time vector d.setX(linspace(0, d.nsecs-1/d.fs, d.nsecs*d.fs)); varargout{1} = d; end