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.

Logical Operators ................................. 3-20<br />

Operator Precedence ............................... 3-26<br />

<strong>MATLAB</strong> Expressions .............................. 3-28<br />

String Evaluation ................................. 3-28<br />

Shell Escape Functions ............................. 3-29<br />

Regular Expressions ............................... 3-31<br />

<strong>MATLAB</strong> Regular Expression Functions ............... 3-32<br />

Elements of an Expression .......................... 3-33<br />

Character Classes ................................. 3-33<br />

Character Representation ........................... 3-36<br />

Grouping Operators ............................... 3-37<br />

Nonmatching Operators ............................ 3-39<br />

Positional Operators ............................... 3-40<br />

Lookaround Operators ............................. 3-41<br />

Quantifiers ....................................... 3-45<br />

Tokens .......................................... 3-48<br />

Named Capture ................................... 3-53<br />

Conditional Expressions ............................ 3-55<br />

Dynamic Regular Expressions ....................... 3-58<br />

String Replacement ................................ 3-67<br />

Handling Multiple Strings .......................... 3-69<br />

Operator Summary ................................ 3-72<br />

Comma-Separated Lists ............................ 3-80<br />

Generating a Comma-Separated List ................. 3-80<br />

Assigning Output from a Comma-Separated List ........ 3-82<br />

Assigning to a Comma-Separated List ................ 3-83<br />

How to Use the Comma-Separated Lists ............... 3-84<br />

Fast Fourier Transform Example ..................... 3-86<br />

Program Control Statements ....................... 3-88<br />

Conditional Control — if, switch ..................... 3-88<br />

Loop Control — for, while, continue, break ............. 3-92<br />

Error Control — try, catch .......................... 3-95<br />

Program Termination — return ...................... 3-96<br />

Symbol Reference ................................. 3-97<br />

Asterisk — * ..................................... 3-98<br />

At — @ .......................................... 3-98<br />

Colon — : ........................................ 3-99<br />

ix

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

Saved successfully!

Ooh no, something went wrong!