Skip to main content

6.1) Classes


Matlab can handle a number of different types of data, referred to as classes.

  • So far our arrays (scalars, vectors and matrices) have contained only numerical values. These fall within the numeric class.
  • We have also encountered strings (like letters, words and sentences), which are arrays of class char.

In this section we take a quick look at the differences between the main classes and how we can combine them.