Matlab:Organizing Data<br />
Contents:<br />Cell Arrays<br />Function Handles<br />Structures<br />
Cell Arrays<br />A cell array is a collection of containers called cells in which different types of data can be stored. <...
Cell Arrays<br />Use ‘{’ and ‘}’ to define the starting and beginning of a Cell Array. <br />
Cell Arrays<br />
Cell Arrays<br />Use ‘(’ and ‘)’ to access individual elements of a Cell Array: <br />
Cell Arrays<br />Get a row of elements:<br />
Cell Arrays<br />Get a column of elements:<br />
Cell Arrays<br />Get corner elements<br />
Cell Arrays<br />Cell Array Indexing Summary<br />Use curly braces {} for setting or getting the contents of cell arrays.<...
Function Handles<br />MATLAB functions are written to named M-files or are produced at the command line as anonymous funct...
Function Handles<br />Consider the following function:<br />Save it as the file func1.m<br />
Function Handles<br />Using function handles:<br />
Structures<br />A structure is a MATLAB data type that provides the means to store selected data together in a single enti...
Defining structures<br />OR<br />
Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutori...
Upcoming SlideShare
Loading in...5
×

Matlab Organizing Data

427

Published on

Matlab Organizing Data

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
427
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Matlab Organizing Data

  1. 1. Matlab:Organizing Data<br />
  2. 2. Contents:<br />Cell Arrays<br />Function Handles<br />Structures<br />
  3. 3. Cell Arrays<br />A cell array is a collection of containers called cells in which different types of data can be stored. <br />
  4. 4. Cell Arrays<br />Use ‘{’ and ‘}’ to define the starting and beginning of a Cell Array. <br />
  5. 5. Cell Arrays<br />
  6. 6. Cell Arrays<br />Use ‘(’ and ‘)’ to access individual elements of a Cell Array: <br />
  7. 7. Cell Arrays<br />Get a row of elements:<br />
  8. 8. Cell Arrays<br />Get a column of elements:<br />
  9. 9. Cell Arrays<br />Get corner elements<br />
  10. 10. Cell Arrays<br />Cell Array Indexing Summary<br />Use curly braces {} for setting or getting the contents of cell arrays.<br />Use parentheses () for indexing into a cell array to collect a subset of cells together in another cell array.<br />
  11. 11. Function Handles<br />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. <br />
  12. 12. Function Handles<br />Consider the following function:<br />Save it as the file func1.m<br />
  13. 13. Function Handles<br />Using function handles:<br />
  14. 14. Structures<br />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.<br />
  15. 15. Defining structures<br />OR<br />
  16. 16. Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutorials section is free, self-guiding and will not involve any additional support.<br />Visit us at www.dataminingtools.net<br />

×