## An Introduction to Matlab

In many professions, you need programming skills. This book introduces you to a program called. Matlab, which is one of the most popular choices for quantitative analysis in fields such as engineering, statistics, economics/finance, and artificial intelligence, to name a few. It will give you the tools to get started whether you ...
Krister Ahlersten

An Introduction to Matlab

An Introduction to Matlab © 2012 Krister Ahlersten & bookboon.com ISBN 978-87-403-0283-7

An Introduction to Matlab

Contents

Contents

An Introduction to Matlab

9

1 Introduction

10

1.1

Preliminaries and a map of the book

10

Features of Matlab

12

2

The Desktop

13

3

Some basics of using Matlab

3.1

The order of precedence

3.2

Some algebraic functions, special characters, and tips

3.3

The syntax of functions

3.3

1.1 1.1

3.4 Variables

360° thinking

.

15 16 17 19 20

3.5

Different types of variables

3.6

A note on interpretation and error messages

24

3.7

How Matlab “searches for meaning”

25

360° thinking

.

21

360° thinking

.

Discover the truth at www.deloitte.ca/careers

© Deloitte & Touche LLP and affiliated entities.

Discover the truth at www.deloitte.ca/careers

Deloitte & Touche LLP and affiliated entities.

© Deloitte & Touche LLP and affiliated entities.

Dis

An Introduction to Matlab

Contents

4

Matrices, vectors and scalars

27

4.1

Creating matrices

28

4.2

31

4.3

Changing parts of a matrix

36

4.4

Some special commands for handling matrices

38

4.5

The Workspace Browser and the Variable Editor

39

4.6

41

5 Mathematical operations with matrices

42

5.1

Functions that operate element-by-element

42

5.2

Elementary mathematical functions that operate columnwise

44

5.3

Matrix algebra

45

5.4 Solving systems of linear equations TMP PRODUCTION 5.5

NY026057B

Finding linear regression coefficients

6x4

gl/rv/rv/baf

4

50

12/13/2013 PSTANKIE

51

ACCCTR00

6

Importing and exporting data

53

6.1

The Current Folder

53

6.2

Problems with importing formatted data

54

6.3

Preparing data to import

54

6.4

Copy-and-paste importing

55

6.5

Importing using the Import Wizard

Bring your talent and passion to a global organization at the forefront of business, technology and innovation. Discover how great you can be. Visit accenture.com/bookboon