23.12.2014 Views

MATLAB practice

MATLAB practice

MATLAB practice

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.

Converting between Data Classes<br />

B=data_class_name(A)<br />

If C is an array of class double in which all values are in<br />

the range [0,255], it can be converted to an uint8 array<br />

with the command D=uint8(C).<br />

If an array of class double has any values outside the<br />

range [0,255] and it is converted to class uint8, <strong>MATLAB</strong><br />

converts to 0 all values that are less than 0, and converts<br />

to 255 all values that are greater than 255.<br />

<strong>MATLAB</strong> – p. 26/333

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

Saved successfully!

Ooh no, something went wrong!