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 />

Element-by-element organization is not the best structure array choice for<br />

most image processing applications; however, it can be the best for other<br />

applications wherein you will routinely need to access corresponding subsets<br />

of structure fields. The example in the following section demonstrates this<br />

type of application.<br />

Example — A Simple Database<br />

Consider organizing a simple database.<br />

Each of the possible organizations has advantages depending on how you<br />

want to access the data:<br />

• Plane organization makes it easier to operate on all field values at once.<br />

For example, to find the average of all the values in the amount field,<br />

- Using plane organization<br />

2-90

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

Saved successfully!

Ooh no, something went wrong!