MATLAB Primer
MathWorks
Quick Start
1
MATLAB Product Description 1-2
Key Features 1-2
Desktop Basics 1-3
Matrices and Arrays . 1-5
Array Indexing 1-9
Workspace Variables 1-11
Text and Characters . 1-12
Text in String Arrays 1-12
Data in Character Arrays 1-12
Calling Functions . 1-14
2-D and 3-D Plots . 1-15
Programming and Scripts 1-21
Scripts 1-21
Live Scripts 1-22
Loops and Conditional Statements . 1-22
Script Locations . 1-23
Help and Documentation 1-24
Language Fundamentals
2
Matrices and Magic Squares 2-2
About Matrices . 2-2
Entering Matrices . 2-3
sum, transpose, and diag . 2-4
The magic Function . 2-5
Generating Matrices . 2-6
Expressions 2-7
Variables . 2-7
Numbers . 2-7
v
ContentsMatrix Operators . 2-8
Array Operators 2-9
Functions 2-10
Examples of Expressions 2-11
Entering Commands 2-12
The format Function 2-12
Suppressing Output 2-13
Entering Long Statements . 2-13
Command Line Editing 2-13
Indexing 2-14
Subscripts . 2-14
The Colon Operator 2-15
Concatenation 2-16
Deleting Rows and Columns 2-16
Scalar Expansion 2-17
Logical Subscripting 2-17
The find Function 2-18
Types of Arrays . 2-19
Multidimensional Arrays . 2-19
Cell Arrays . 2-21
Characters and Text 2-22
Structures . 2-24
Mathematics
3
Linear Algebra 3-2
Matrices in the MATLAB Environment . 3-2
Systems of Linear Equations 3-10
Factorizations . 3-19
Powers and Exponentials 3-24
Eigenvalues 3-28
Singular Values . 3-30
Operations on Nonlinear Functions 3-35
Function Handles 3-35
Function Functions . 3-35
Multivariate Data . 3-38
Graphics
4
Basic Plotting Functions 4-2
Creating a Plot . 4-2
Plotting Multiple Data Sets in One Graph . 4-4
vi ContentsSpecifying Line Styles and Colors . 4-6
Plotting Lines and Markers 4-7
Graphing Imaginary and Complex Data . 4-8
Adding Plots to an Existing Graph . 4-9
Figure Windows . 4-10
Displaying Multiple Plots in One Figure . 4-11
Controlling the Axes 4-11
Adding Axis Labels and Titles . 4-13
Saving Figures 4-13
Saving Workspace Data . 4-14
Creating Mesh and Surface Plots 4-15
About Mesh and Surface Plots 4-15
Visualizing Functions of Two Variables 4-15
Display Images . 4-20
Image Data . 4-20
Reading and Writing Images 4-21
Printing Graphics 4-23
Overview of Printing 4-23
Printing from the File Menu 4-23
Exporting the Figure to a Graphics File . 4-23
Using the Print Command 4-23
Working with Graphics Objects . 4-25
Graphics Objects 4-25
Setting Object Properties 4-27
Functions for Working with Objects 4-28
Passing Arguments . 4-29
Finding the Handles of Existing Objects . 4-30
Programming
5
Control Flow 5-2
Conditional Control — if, else, switch 5-2
Loop Control — for, while, continue, break 5-4
Program Termination — return . 5-6
Vectorization 5-6
Preallocation 5-6
Scripts and Functions 5-8
Overview . 5-8
Scripts . 5-8
Functions . 5-9
Types of Functions . 5-10
Global Variables . 5-12
Command vs. Function Syntax 5-12
كلمة سر فك الضغط : books-world.net
The Unzip Password : books-world.net
تحميل
يجب عليك التسجيل في الموقع لكي تتمكن من التحميل
تسجيل | تسجيل الدخول