23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Symbol Reference<br />

Handles to Anonymous Functions. Anonymous functions give you a quick<br />

means of creating simple functions without having to create M-files each<br />

time. You can construct an anonymous function and a handle to that function<br />

using the syntax<br />

fhandle = @(arglist) body<br />

where body defines the body of the function and arglist is the list of<br />

arguments you can pass to the function.<br />

See “Anonymous Functions” on page 5-3 for more information.<br />

Class Directory Designator<br />

A <strong>MATLAB</strong> class directory contains source files that define the methods and<br />

properties of a class. All <strong>MATLAB</strong> class directory names must begin with<br />

an @ sign:<br />

\@myclass\get.m<br />

See “<strong>MATLAB</strong> Classes” on page 2-118 for more information.<br />

Colon — :<br />

The colon operator generates a sequence of numbers that you can use in<br />

creating or indexing into arrays. See “Generating a Numeric Sequence” on<br />

page 1-10 for more information on using the colon operator.<br />

Numeric Sequence Range<br />

Generate a sequential series of regularly spaced numbers from first to last<br />

using the syntax first:last. For an incremental sequence from 6 to 17, use<br />

N = 6:17<br />

3-99

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

Saved successfully!

Ooh no, something went wrong!