Mercurial > hg > ltpda
comparison m-toolbox/classes/tests/@ltpda_utp/char.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 % CHAR convert a ltpda_utp object into a string. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: CHAR convert an ltpda_utp object into a string. | |
5 % | |
6 % CALL: string = char(sw); | |
7 % | |
8 % VERSION: $Id: char.m,v 1.1 2010/10/07 14:52:24 hewitson Exp $ | |
9 % | |
10 % HISTORY: 04-02-2007 M Hewitson | |
11 % Creation | |
12 % | |
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
14 | |
15 function varargout = char(varargin) | |
16 | |
17 %%% Get input | |
18 | |
19 pstr = []; | |
20 for kk = 1:nargin | |
21 utp = varargin{kk}; | |
22 | |
23 pstr = [class(utp)]; | |
24 | |
25 if kk<nargin | |
26 pstr = [pstr ', ']; | |
27 end | |
28 end | |
29 | |
30 varargout{1} = pstr; | |
31 | |
32 end | |
33 |