message

버전 1.0.0.0 (2.4 KB) 작성자: Todd Pataky
MESSAGE is a suppressible version of fprintf that functions similarly to WARNING.
다운로드 수: 834
업데이트 날짜: 2006/6/19

라이선스 없음

MESSAGE Displays a message in the command window. This is an alternative to WARNING, avoiding the automatic text "Warning: ", and also allowing for more flexible formatting, using FPRINTF.

It was developed with the intention of providing suppressible feedback during code execution requiring long running durations.
(e.g. Processing file 1 of 100...
Processing file 2 of 100... )

In this sense it can be used as a text alternative to WAITBAR.

Example Usage:

>> message('Hello')
Hello

>> message('Level 1','Hello')
Level 1
%behaves identically to FPRINTF

>> message('Level 1 %s','Hello')
Level 1 Hello

>> message('enable',{'Level 1'})
>> message('Level 1','Hello')
Hello

>> message('enable','Level 1')
>> message('off')
>> message('Level 1','Hello')
%no output returned
>> state = message('query','Level 1')
state =
1

인용 양식

Todd Pataky (2025). message (https://www.mathworks.com/matlabcentral/fileexchange/11456-message), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Scope Variables and Generate Names에 대해 자세히 알아보기
도움

도움 준 파일: message 2

Community Treasure Hunt

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

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