23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

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.

Regular Expressions<br />

Dynamic Expression Operators (Continued)<br />

Operator<br />

(?@cmd)<br />

${cmd}<br />

Usage<br />

Execute the <strong>MATLAB</strong> command cmd, and include the<br />

string returned by cmd in the match expression. This<br />

is a combination of the two dynamic syntaxes shown<br />

above: (??expr) and (?@cmd).<br />

Execute the <strong>MATLAB</strong> command cmd, and include the<br />

string returned by cmd in the replacement expression.<br />

Replacement String Operators<br />

Operator<br />

Operators from Character<br />

Representation on page 3-73<br />

table<br />

Usage<br />

The character represented by the<br />

metacharacter sequence<br />

$` That part of the input string that<br />

precedes the current match<br />

$& or $0<br />

That part of the input string that is<br />

currently a match<br />

$· That part of the input string that<br />

follows the current match. In<br />

<strong>MATLAB</strong>, use $'' to represent the<br />

character sequence $·.<br />

$N The string represented by the token<br />

identified by name<br />

$<br />

${cmd}<br />

The string represented by the token<br />

identified by name<br />

The string returned when <strong>MATLAB</strong><br />

executes the command cmd<br />

3-79

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

Saved successfully!

Ooh no, something went wrong!