23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

echo<br />

2echo<br />

Purpose Echo M-files during execution<br />

Syntax echo on<br />

echo off<br />

echo<br />

echo fcnname on<br />

echo fcnname off<br />

echo fcnname<br />

echo on all<br />

echo off all<br />

Description The echo command controls the echoing of M-files during execution. Normally,<br />

the commands in M-files do not display on the screen during execution.<br />

Command echoing is useful for debugging or for demonstrations, allowing the<br />

commands to be viewed as they execute.<br />

See Also function<br />

2-466<br />

The echo command behaves in a slightly different manner for script files and<br />

function files. For script files, the use of echo is simple; echoing can be either<br />

on or off, in which case any script used is affected.<br />

echo on Turns on the echoing of commands in all script files.<br />

echo off Turns off the echoing of commands in all script files.<br />

echo Toggles the echo state.<br />

With function files, the use of echo is more complicated. If echo is enabled on a<br />

function file, the file is interpreted, rather than compiled. Each input line is<br />

then displayed as it is executed. Since this results in inefficient execution, use<br />

echo only for debugging.<br />

echo fcnname on Turns on echoing of the named function file.<br />

echo fcnname off Turns off echoing of the named function file.<br />

echo fcnname Toggles the echo state of the named function file.<br />

echo on all Set echoing on for all function files.<br />

echo off all Set echoing off for all function files.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!