Professional Documents
Culture Documents
BE368 Lecture 3
BE368 Lecture 3
Matlab
Lecture 3: Importing and Analysing Financial
Data
Mark Hallam
University of Essex
27 Oct 2022
I Under ‘Output Type’ you can choose what type of object you
want Matlab to save the data into - the default choice is
usually a table object, which we will discuss shortly
I Alternatively, you can import the values for all data series into
a single matrix variable (select ‘Numeric Matrix’) or each
variable into a separate vector variable (‘Column vectors’)
I There are also ‘String Array’ and ‘Cell Array’ options, which
are useful for saving variable names or other text data
Mark Hallam University of Essex
BE368: Lecture 3
Importing Data
I There are also options for choosing what Matlab should do
about any missing or unreadable values present in the
imported data (default is to replace them with NaNs)
I For some time the default import object type in Matlab has
been a table object, which stores data for multiple
series/variables in a single object
I Data for each variable is stored column-wise and each
column/variable has a name stored within the table/timetable
object that can be used for indexing
I They can optionally also contain extra information, such as
descriptions of the series and row names, but we will not use
those options here
I Each column can contain different data types, e.g. numerical
values in the first two columns and text values in the third
column