## An Introduction to Matlab

Online documentation from MathWorks. 113. 13.4. The internet. 114. 14. Appendix; Commands used in this book. 115. 15. Endnotes. 117. Download free eBooks at bookboon.com. Click on the ad to read more. By 2020, wind could provide one-tenth of our planet's · electricity needs. Already today, SKF's innovative know-.
Krister Ahlersten

An Introduction to Matlab

2 Download free eBooks at bookboon.com

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

3 Download free eBooks at bookboon.com

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.

Discover the truth 4 at www.deloitte.ca/careers Click on the ad to read more Download free eBooks at bookboon.com © 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

Addressing parts of matrices

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

More about matrices

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

Bookboon Ad Creative

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

55 All rights reserved.

© 2013 Accenture.

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

5 Download free eBooks at bookboon.com

Click on the ad to read more

An Introduction to Matlab

Contents

6.6

Importing using commands

58

6.7