Do you ever want to see progress of a FOR/WHILE loop by printing information to the command window, but want to keep the printing to a single line instead of scrolling down the command window? If so then this is the utility for you. Just clear the print register before the loop with "dispinline('')" and then use dispinline in the loop just like disp.
Paul Shoemaker (2020). dispinline (https://www.mathworks.com/matlabcentral/fileexchange/73500-dispinline), MATLAB Central File Exchange. Retrieved .