This document summarizes different ways to organize data in Matlab, including cell arrays, function handles, and structures.
Cell arrays allow different data types to be stored in containers called cells. Function handles pass functions as inputs to other functions. Structures store selected data together in fields, where each field contains an array of a Matlab data type.
10. Cell Arrays Cell Array Indexing Summary Use curly braces {} for setting or getting the contents of cell arrays. Use parentheses () for indexing into a cell array to collect a subset of cells together in another cell array.
11. Function Handles MATLAB functions are written to named M-files or are produced at the command line as anonymous functions. In either case, a function handle is used to pass the function as an input argument to a function.
14. Structures A structure is a MATLAB data type that provides the means to store selected data together in a single entity. A structure consists mainly of data containers, called fields, and each of these fields stores an array of some MATLAB data type. The figure below shows a structure s that has three fields: a, b, and c.
16. Visit more self help tutorials Pick a tutorial of your choice and browse through it at your own pace. The tutorials section is free, self-guiding and will not involve any additional support. Visit us at www.dataminingtools.net