comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % CHAR convert a ltpda_data-object into a string.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: CHAR convert a ltpda_data object into a string.
5 %
6 % CALL: string = char(fsdata)
7 %
8 % VERSION: $Id: char.m,v 1.5 2011/02/18 16:48:56 ingo Exp $
9 %
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12 function varargout = char(varargin)
13
14 % Collect all ltpda_data-objects
15 objs = [varargin{:}];
16
17 %%% Add the size of the data (all)
18 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)));
19
20 varargout{1} = pstr;
21 end
22