diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/tests/@ltpda_utp/char.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,33 @@
+% CHAR convert a ltpda_utp object into a string.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: CHAR convert an ltpda_utp object into a string.
+%
+% CALL:        string = char(sw);
+%
+% VERSION:     $Id: char.m,v 1.1 2010/10/07 14:52:24 hewitson Exp $
+%
+% HISTORY:     04-02-2007 M Hewitson
+%                 Creation
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function varargout = char(varargin)
+
+  %%% Get input
+
+  pstr = [];
+  for kk = 1:nargin
+    utp = varargin{kk};
+
+    pstr = [class(utp)];
+
+    if kk<nargin
+      pstr = [pstr ', '];
+    end
+  end
+
+  varargout{1} = pstr;
+
+end
+