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 (2021). dispinline (https://www.mathworks.com/matlabcentral/fileexchange/73500-dispinline), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.