Overwritable message outputs to commandline window

버전 1.1.0.0 (1.98 KB) 작성자: kasim tasdemir
Alternative for 'display' function which can overwrite the previous message if required.
다운로드 수: 3K
업데이트 날짜: 2013/12/12

라이선스 보기

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
Ex:
> 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');

Output:

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

인용 양식

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. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2013b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Screenshot and description are changed

1.0.0.0