Overwritable message outputs to commandline window

Alternative for 'display' function which can overwrite the previous message if required.
3K download
Aggiornato 12 dic 2013

Visualizza la licenza

When you use 'display' function it does not overwrite the previous message. With this file, you can overwrite or keep previous message on commandline window. Or you can choose current message to be persistent. You can also append time stamp to the beginning of the message Very simple to use. Check >help dispstat
> dispstat('','init'); %one time only init
> dispstat('Begining the process...','keepthis','timespamp');
> for i = 1:100
> dispstat(sprintf('Processing %d%%',i),'timestamp');
> %doing some heavy stuff here
> end
> dispstat('Finished.','keepprev');


16:41:37 Begining the process...
16:41:37 Processing 100%

Cita come

kasim tasdemir (2024). Overwritable message outputs to commandline window (https://www.mathworks.com/matlabcentral/fileexchange/44673-overwritable-message-outputs-to-commandline-window), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Entering Commands in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release

Screenshot and description are changed