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.

Identifying Numeric Types .......................... 2-27<br />

Display Format for Numeric Values ................... 2-27<br />

Function Summary ................................ 2-29<br />

Logical Types ..................................... 2-33<br />

Creating a Logical Array ........................... 2-33<br />

How Logical Arrays Are Used ....................... 2-35<br />

Identifying Logical Arrays .......................... 2-37<br />

Characters and Strings ............................. 2-38<br />

Creating Character Arrays .......................... 2-38<br />

Cell Arrays of Strings .............................. 2-40<br />

Formatting Strings ................................ 2-43<br />

String Comparisons ............................... 2-56<br />

Searching and Replacing ........................... 2-59<br />

Converting from Numeric to String ................... 2-60<br />

Converting from String to Numeric ................... 2-62<br />

Function Summary ................................ 2-64<br />

Dates and Times ................................... 2-67<br />

Types of Date Formats ............................. 2-67<br />

Conversions Between Date Formats .................. 2-69<br />

Date String Formats ............................... 2-69<br />

Output Formats ................................... 2-70<br />

Current Date and Time ............................. 2-72<br />

Function Summary ................................ 2-72<br />

Structures ........................................ 2-75<br />

Building Structure Arrays .......................... 2-76<br />

Accessing Data in Structure Arrays ................... 2-79<br />

Using Dynamic Field Names ........................ 2-81<br />

Finding the Size of Structure Arrays .................. 2-82<br />

Adding Fields to Structures ......................... 2-83<br />

Deleting Fields from Structures ...................... 2-84<br />

Applying Functions and Operators ................... 2-84<br />

Writing Functions to Operate on Structures ............ 2-85<br />

Organizing Data in Structure Arrays ................. 2-86<br />

Nesting Structures ................................ 2-92<br />

Function Summary ................................ 2-93<br />

Cell Arrays ........................................ 2-94<br />

Cell Array Operators ............................... 2-95<br />

vii

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

Saved successfully!

Ooh no, something went wrong!