Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0e0091cb authored by DIB Elian's avatar DIB Elian
Browse files

Added function to print on same line

parent 758d7a31
Branches
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment