- It makes sense to use echo off pretty much every time. Although echo on is used for debugging purposes, there are better way to debug code via error messages and the debugger.
- echo off is faster, no time spent printing message.
- always use semicolon to suppress function outputs. It should be a habit to use ";" as many programming languages uses the semicolon to end a statement.
- if you use semicolon, you don't have to place echo off in your GUI, unless you want it to turn echo on / off as part of a debugger option for your GUI.
Echo off or semicolon in GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Birch
el 29 de Sept. de 2017
Comentada: OCDER
el 29 de Sept. de 2017
This might be very basic (stupid) question but I will ask anyway. Does eat make sense to use echo off in a matlab GUI, and does it make the program run faster? Which is the preferred, echo off or semicolon after each function. And finally, how do I place/use the echo off in a GUI code. Thanks from a novice.
0 comentarios
Respuesta aceptada
OCDER
el 29 de Sept. de 2017
5 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!