diff m-toolbox/classes/@xyzdata/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/@xyzdata/char.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,22 @@
+% CHAR convert a ltpda_data-object into a string.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: CHAR convert a ltpda_data object into a string.
+%
+% CALL:        string = char(fsdata)
+%
+% VERSION:     $Id: char.m,v 1.5 2011/02/18 16:48:56 ingo Exp $
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function varargout = char(varargin)
+
+  % Collect all ltpda_data-objects
+  objs = [varargin{:}];
+
+  %%% Add the size of the data (all)
+  pstr = sprintf('Ndata = %s, %s, [%sx%s]', num2str(length(objs.x)), num2str(length(objs.y)), num2str(size(objs.z,1)), num2str(size(objs.z,2)));
+
+  varargout{1} = pstr;
+end
+