• Like
  • Save
Matlab Organizing Data
Upcoming SlideShare
Loading in...5

Matlab Organizing Data

Uploaded on

Matlab Organizing Data

Matlab Organizing Data

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Matlab:Organizing Data
  • 2. Contents:
    Cell Arrays
    Function Handles
  • 3. Cell Arrays
    A cell array is a collection of containers called cells in which different types of data can be stored.
  • 4. Cell Arrays
    Use ‘{’ and ‘}’ to define the starting and beginning of a Cell Array.
  • 5. Cell Arrays
  • 6. Cell Arrays
    Use ‘(’ and ‘)’ to access individual elements of a Cell Array:
  • 7. Cell Arrays
    Get a row of elements:
  • 8. Cell Arrays
    Get a column of elements:
  • 9. Cell Arrays
    Get corner elements
  • 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.
  • 12. Function Handles
    Consider the following function:
    Save it as the file func1.m
  • 13. Function Handles
    Using function handles:
  • 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.
  • 15. Defining structures
  • 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