echo
Display statements during function or script execution
Description
echo on turns on echoing for statements in all script
files. When you turn on echoing, MATLAB® displays each line in the file in the Command Window as it runs.
Normally, the statements in a script are not displayed during execution.
Statement echoing is useful for debugging and for demonstrations.
echo off turns off echoing for statements in all script
files.
echo toggles on and off echoing for statements in all
script files.
echo turns off echoing
for the function specified by filename offfilename.
echo toggles on and off the
echoing of statements for the function specified by
filenamefilename.
echo on all turns on echoing for all functions.
echo off all turns off echoing for all functions.
Examples
Input Arguments
Tips
Running MATLAB with echoing turned on is inefficient. To improve performance, only turn echoing on for debugging or demonstration purposes.
To avoid confusing syntax, do not use
onoroffas a function name.
Version History
Introduced before R2006a