matlab-basic-functions-reference.pdf
Create vector of n equally spaced values logspace(ab
matlab basic functions reference
GEOMETRIC MEANS IN A NOVEL VECTOR SPACE STRUCTURE
Sym(n) is the vector space of real n × n symmetric matrices. write log(M) for the principal logarithm of a matrix M whenever it is defined.
arsigny siam tensors
MATLAB Function Reference (Volume 1: Language)
Generate logarithmically spaced vectors ones. Create an array of all ones rand. Uniformly distributed random numbers and arrays.
a ffbc e a d e b a ed df
Initiation au logiciel " Matlab "
ELEMENTARY MATRICES AND MATRIX MANIPULATION. On obtient les informations sur une fonction (contenue dans Matlab ou ... Logarithmically spaced vector.
InitiationAideMatlab
Matlab Sheet 2 Arrays
Matlab Sheet 2 Solution. Matlab Sheet 2. Arrays. 1. a. Create the vector x having 50 logarithmically spaced values starting at. 10 and ending at 1000.
Matlab Sheet solution
MATLAB Commands and Functions
Matrix Commands for Solving Linear Equations / 6 Lists all MATLAB files in the current directory. wklread ... Creates logarithmically spaced vector.
MatlabCommands
INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS
After logging into your account you can enter MATLAB by double-clicking on the MATLAB there is a command to generate linearly spaced vectors: linspace.
introduction to matlab
Initiation au logiciel " Matlab "
ELEMENTARY MATRICES AND MATRIX MANIPULATION. Le logiciel Matlab est ouvert dans la fenêtre de commande Matlab Mcw ... Logarithmically spaced vector.
Initiation Aide Matlab
MATLAB Fundamentals - Cheat Sheet - Tools Course ETH Zürich
MATLAB Fundamentals - Cheat Sheet - Tools Course ETH Zürich. Basics. Workspace mathworks.com/help/matlab/ ... Log. spaced vector (50 elements).
ML CheatSheet
Introduction to MATLAB II representation of signals and computing
Vector Matrix and Array Commands. Some of MATLAB functions operate essentially on a vector (row or column)
experiment
INTRODUCTION TO MATLAB FOR
ENGINEERING STUDENTS
David Houcque
Northwestern University
(version 1.2, August 2005)Contents
1Tutorial lessons 1
1 1.1Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2Basic features
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3A minimum MATLAB session
. . . . . . . . . . . . . . . . . . . . . . . . . . 21.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 4
1.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4Getting started
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 5
1.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 6
1.4.6 Controlling the appearance of °oating point number . . . . . . . . . . 8
1.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 9
1.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 9
1.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2Tutorial lessons 2
12 2.1Mathematical functions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
i 2.2Basic plotting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 15
2.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 16
2.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 17
2.3Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5Matrix generation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.6Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3Array operations and Linear equations
303.1
Array operations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30
3.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30
3.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
ii3.2.2 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.3INTRODUCTION TO MATLAB FOR
ENGINEERING STUDENTS
David Houcque
Northwestern University
(version 1.2, August 2005)Contents
1Tutorial lessons 1
1 1.1Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2Basic features
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3A minimum MATLAB session
. . . . . . . . . . . . . . . . . . . . . . . . . . 21.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 4
1.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4Getting started
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 5
1.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 6
1.4.6 Controlling the appearance of °oating point number . . . . . . . . . . 8
1.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 9
1.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 9
1.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2Tutorial lessons 2
12 2.1Mathematical functions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
i 2.2Basic plotting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 15
2.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 16
2.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 17
2.3Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5Matrix generation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.6Exercises
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3Array operations and Linear equations
303.1
Array operations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30
3.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30
3.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
ii3.2.2 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.3- logarithmic spaced vector matlab
- matlab create log spaced vector
- matlab generate log spaced vector