Mercurial > hg > ltpda
comparison m-toolbox/classes/@tsdata/setX.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 % SETX Set the property 'x'. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: Set the property 'x'. | |
5 % | |
6 % CALL: obj.setX([1 2 3]); | |
7 % obj = obj.setX([1 2 3]); create copy of the object | |
8 % | |
9 % INPUTS: obj - must be a single tsdata object. | |
10 % | |
11 % VERSION: $Id: setX.m,v 1.1 2011/10/05 12:01:28 ingo Exp $ | |
12 % | |
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
14 | |
15 function varargout = setX(varargin) | |
16 | |
17 obj = varargin{1}; | |
18 | |
19 % In this case we have to sett the toffset to 0. | |
20 % | |
21 % This is necessary because some methods get the x-vector with getX and | |
22 % then contains the x-vector the toffset. | |
23 obj.setToffset(0); | |
24 | |
25 if nargout>0 | |
26 obj = setX@data2D(varargin{:}); | |
27 else | |
28 setX@data2D(varargin{:}); | |
29 end | |
30 | |
31 varargout{1} = obj; | |
32 | |
33 end | |
34 |