Mercurial > hg > ltpda
view m-toolbox/classes/@tsdata/growT.m @ 52:daf4eab1a51e database-connection-manager tip
Fix. Default password should be [] not an empty string
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 07 Dec 2011 17:29:47 +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