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

Matlab Organizing Data

on

  • 707 views

Matlab Organizing Data

Matlab Organizing Data

Statistics

Views

Total Views
707
Views on SlideShare
677
Embed Views
30

Actions

Likes
0
Downloads
0
Comments
0

2 Embeds 30

http://www.dataminingtools.net 19
http://dataminingtools.net 11

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Matlab Organizing Data Matlab Organizing Data Presentation Transcript

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