Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
5Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Matlab

Matlab

Ratings: (0)|Views: 1,954|Likes:
introduction to mathematics
introduction to mathematics

More info:

Published by: Shailesh Sankdasariya on Sep 03, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/24/2013

pdf

text

original

 
INTRODUCTION TO MATLAB FORENGINEERING STUDENTS
David HoucqueNorthwestern University
(version 1.2, August 2005)
 
Contents
1Tutorial lessons 11
1.1Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2Basic features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.3A minimum MATLAB session. . . . . . . . . . . . . . . . . . . . . . . . . . 21.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 41.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.4Getting started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 51.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 61.4.6 Controlling the appearance of floating point number . . . . . . . . . . 81.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 81.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 91.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 91.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 101.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.5Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2Tutorial lessons 212
2.1Mathematical functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13i
 
2.2Basic plotting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 142.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 152.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 162.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 172.3Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182.4Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.5Matrix generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 222.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 232.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 252.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 262.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 262.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.6Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3Array operations and Linear equations30
3.1Array operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 303.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 303.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33ii

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
Khalil Ullah liked this
hakkembabu liked this
allovid liked this
hdyoon3379891 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->