MATLAB: Is it possible to rewrite/update a printed line fprintf I want to simulate a progress bar during the run, so 1% has to be updated to 2% for example Best Answer You may be able to do this, but you may instead want to use the waitbar function included in MATLAB. Related SolutionsMATLAB: How to overwrite text in the command window That is the most efficient way. There is no way to address individual characters or pixels of the command output window (unless perhaps you can get at it from the java level.) MATLAB: How to print a “%” when using fprintf percentError = 0.03696863;fprintf('Percent Error: %0.8f %%', percentError); Related QuestionHow to change cursor to hour glassHow to follow progress of a parfor-loopProgress Bar and for loopHow to convert cell into array of floating point numbers only
Best Answer