Mercurial > hg > ltpda
view m-toolbox/classes/+utils/@prog/disp.m @ 39:11e3ed9d2115 database-connection-manager
Implement databases listing in database connection dialog
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
function varargout = disp(varargin) % DISP display a formatted string to screen. % % usage: disp(format, args); % s = disp(format, args); % % Examples: % >> disp('%s-%d', 'hello', 3); % >> s = disp('%s-%d', 'hello', 3); % % M Hewitson 26-02-08 % % $Id: disp.m,v 1.1 2008/06/18 13:35:11 hewitson Exp $ % so simple s = sprintf(varargin{1}, varargin{2:end}); disp(s); if nargout == 1 varargout{1} = s; end % END