# Introduction To Matlab Application To Electrical Engineering

Topics: MATLAB, Matrix, Row vector Pages: 120 (16076 words) Published: April 17, 2015
Introduction to Matlab:
Application to Electrical
Engineering

Houssem Rafik El Hana Bouchekara
Umm El Qura University

(version 1, Februray 2011)

1

Contents
1

CHAPTER 1 ............................................................................................................................................ 7 1.1

TUTORIAL LESSONS 1 ................................................................................................................................ 7

1.1.1
1.2

STARTING AND QUITTING MATLAB ............................................................................................................ 8

1.2.1

Starting MATLAB ............................................................................................................................ 8

1.2.2

Quitting MATLAB ............................................................................................................................ 8

1.3

MATLAB DESKTOP.................................................................................................................................. 8

1.4

DESKTOP TOOLS .................................................................................................................................... 10

1.4.1

Command Window ....................................................................................................................... 10

1.4.2

Command History ......................................................................................................................... 11

1.4.3

1.4.4

Help Browser ................................................................................................................................ 12

1.4.5

Current Directory Browser ............................................................................................................ 13

1.4.6

Workspace Browser...................................................................................................................... 14

1.4.7

Editor/Debugger ........................................................................................................................... 16

1.5

GETTING STARTED .................................................................................................................................. 17

1.5.1

Using MATLAB as a calculator...................................................................................................... 17

1.5.2

Creating MATLAB variables .......................................................................................................... 18

1.5.3

Overwriting variable ..................................................................................................................... 19

1.5.4

Error messages ............................................................................................................................. 19

1.5.5

Making corrections ....................................................................................................................... 19

1.5.6

Controlling the hierarchy of operations or precedence ................................................................ 19

1.5.7

Controlling the appearance of floating point number.................................................................. 21

1.5.8

Managing the workspace ............................................................................................................. 21

1.5.9

Keeping track of your work session .............................................................................................. 22

1.5.10

Entering multiple statements per line ........................................................................................ 22

1.5.11

Miscellaneous...

Bibliography: [1] The MathWorks Inc. MATLAB 7.0 (R14SP2). The MathWorks Inc., 2005.
[2] S. J. Chapman. MATLAB Programming for Engineers. Thomson, 2004.
[3] C. B. Moler. Numerical Computing with MATLAB. Siam, 2004.
[4] C. F. Van Loan. Introduction to Scientific Computing. Prentice Hall, 1997.
[5] D. J. Higham and N. J. Higham. MATLAB Guide. Siam, second edition edition, 2005. [6] K. R.
[7] A. Gilat. MATLAB: An introduction with Applications. John Wiley and Sons, 2004.
[8] J. Cooper. A MATLAB Companion for Multivariable Calculus. Academic Press, 2001. [9] J. C.
Polking and D. Arnold. ODE using MATLAB. Prentice Hall, 2004.
[10] D. Kahaner, C. Moler, and S. Nash. Numerical Methods and Software. Prentice-Hall, 1989.
[11] J. W. Demmel. Applied Numerical Linear Algebra. Siam, 1997.
Applications of MATLAB: Ordinary Differential Equations. Internal
communication, Northwestern University, pages 1–12, 2005.