annotate solvers/SMALL_ompGabor/printf.m @ 194:9b0595a8478d danieleb

Debugged SMALL_DL_test and added copyright info
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Tue, 13 Mar 2012 17:53:46 +0000
parents 31d2864dfdd4
children
rev   line source
ivan@140 1 function str = printf(varargin)
ivan@140 2 %PRINTF Print formatted text to screen.
ivan@140 3 % PRINTF(FMT,VAL1,VAL2,...) formats the data in VAL1,VAL2,... according to
ivan@140 4 % the format string FMT, and prints the result to the screen.
ivan@140 5 %
ivan@140 6 % The call to PRINTF(FMT,VAL1,VAL2,...) simply invokes the call
ivan@140 7 % DISP(SPRINTF(FMT,VAL1,VAL2,...)). For a complete description of the
ivan@140 8 % format string options see function SPRINTF.
ivan@140 9 %
ivan@140 10 % STR = PRINTF(...) also returns the formatted string.
ivan@140 11
ivan@140 12
ivan@140 13 % Ron Rubinstein
ivan@140 14 % Computer Science Department
ivan@140 15 % Technion, Haifa 32000 Israel
ivan@140 16 % ronrubin@cs
ivan@140 17 %
ivan@140 18 % April 2008
ivan@140 19
ivan@140 20
ivan@140 21 if (nargout>0)
ivan@140 22 str = sprintf(varargin{:});
ivan@140 23 disp(str);
ivan@140 24 else
ivan@140 25 disp(sprintf(varargin{:}));
ivan@140 26 end