Chapter 8

Data Structures: Cell Arrays and Structures

Contents

Key words

data structures

cell array

structures

fields

database

record

content indexing

cell indexing

comma-separated list

vector of structures

nested structure

Data structures are variables that store more than one value. For it to make sense to store more than one value in a variable, the values should somehow be logically related. There are many different kinds of data structures. We have already been working with one kind, arrays (e.g., vectors and matrices). An array is a data structure in which all of the values are logically related in that they are of the same type, and represent in some sense “the same thing.” So far, that has been true ...

Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.