comparison m-toolbox/classes/@time/display.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 % DISPLAY display functionality for time objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Display functionality for time objects.
5 %
6 % VERSION: $Id: display.m,v 1.25 2010/08/29 20:52:38 nicolodi Exp $
7 %
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
10 function out = display(obj)
11
12 out = {};
13 for ii = 1:numel(obj)
14 out{ii} = format(obj(ii));
15 end
16 out = reshape(out, size(obj));
17
18 if nargout == 0
19 if isequal(get(0,'FormatSpacing'),'compact')
20 disp([inputname(1) ' =']);
21 disp(out);
22 else
23 disp(' ');
24 disp([inputname(1) ' =']);
25 disp(' ');
26 disp(out);
27 end
28 end
29
30 end