Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
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
Citar como
Todd Pataky (2026). message (https://la.mathworks.com/matlabcentral/fileexchange/11456-message), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspiración para: message 2
Categorías
Más información sobre Scope Variables and Generate Names en Help Center y MATLAB Answers.
Información general
- Versión 1.0.0.0 (2,4 KB)
-
Sin licencia
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
