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.

2 Data Types<br />

Function Summary<br />

<strong>MATLAB</strong> provides these functions for working with character arrays:<br />

• Functions to Create Character Arrays on page 2-64<br />

• Functions to Modify Character Arrays on page 2-64<br />

• Functions to Read and Operate on Character Arrays on page 2-65<br />

• Functions to Search or Compare Character Arrays on page 2-65<br />

• Functions to Determine Data Type or Content on page 2-65<br />

• Functions to Convert Between Numeric and String Data Types on page 2-66<br />

• Functions to Work with Cell Arrays of Strings as Sets on page 2-66<br />

FunctionstoCreateCharacterArrays<br />

Function<br />

'str'<br />

blanks<br />

sprintf<br />

strcat<br />

strvcat<br />

Description<br />

Create the string specifiedbetweenquotes.<br />

Create a string of blanks.<br />

Write formatted data to a string.<br />

Concatenate strings.<br />

Concatenate strings vertically.<br />

Functions to Modify Character Arrays<br />

Function<br />

deblank<br />

lower<br />

sort<br />

strjust<br />

strrep<br />

Description<br />

Remove trailing blanks.<br />

Make all letters lowercase.<br />

Sort elements in ascending or descending order.<br />

Justify a string.<br />

Replace one string with another.<br />

2-64

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

Saved successfully!

Ooh no, something went wrong!