diff --git a/printLine.m b/printLine.m new file mode 100644 index 0000000000000000000000000000000000000000..ad074860eee75e55f89b2a4ad5d5a698a48bdca7 --- /dev/null +++ b/printLine.m @@ -0,0 +1,13 @@ +function printLine(msg,varargin) +%PRINTLINE Summary of this function goes here +% Detailed explanation goes here + +persistent sz +if isempty(sz); sz = 0; end +if nargin>1; sz = varargin{1}; end + +fprintf(repmat('\b',1,sz)); +fprintf(msg); +sz = numel(msg)-count(msg,'\n'); + +end \ No newline at end of file