28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

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.

Category Description<br />

isstrprop<br />

wspace True for those elements of str that are white-space<br />

characters. This range includes the ANSI C definition of<br />

white space, {' ','\t','\n','\r','\v','\f'}.<br />

upper True for those elements of str that are uppercase letters<br />

xdigit True for those elements of str that are valid hexadecimal<br />

digits<br />

Remarks Numbers of type double are converted to int32 according to MATLAB rules of<br />

double-to-integer conversion. Numbers of type int64 and uint64 bigger than<br />

int32(inf) saturate to int32(inf).<br />

MATLAB classifies the elements of the str input according to the Unicode<br />

definition of the specified category. If the numeric value of an element in the<br />

input array falls within the range that defines a Unicode character category,<br />

then this element is classified as being of that category. The set of Unicode<br />

character codes includes the set of ASCII character codes, but also covers a<br />

large number of languages beyond the scope of the ASCII set. The classification<br />

of characters is dependent on the global location of the platform on which<br />

MATLAB is installed.<br />

Examples Test for alphabetic characters in a string:<br />

A = isstrprop('abc123def', 'alpha')<br />

A =<br />

1 1 1 0 0 0 1 1 1<br />

Test for numeric digits in a string:<br />

A = isstrprop('abc123def', 'digit')<br />

A =<br />

0 0 0 1 1 1 0 0 0<br />

Test for hexadecimal digits in a string:<br />

A = isstrprop('abcd1234efgh', 'xdigit')<br />

A =<br />

1 1 1 1 1 1 1 1 1 1 0 0<br />

2-1273

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

Saved successfully!

Ooh no, something went wrong!