【实例简介】
这是matlab自带的帮助文档,没有多少页,而且没有一句多余的话,所以很适合用来入门
Revision History
December 1996 First printing
For matlab 5
May 1997
Second printing
For matlab 5.1
September 1998 Third printing
For matlab 5.3
September 2000 Fourth printing
Revised for Matlab 6 Release 12)
June 2001
Online only
Revised for MATLAB 6.1(Release 12.1)
July 2002
Online only
Revised for Matlab 6.5 (Release 13)
August 2002
Fifth printing
Revised for matlab 6.5
June 2004
Sixth printing
Revised for MatLAB 7.0 (Release 14)
October 2004
Online only
Revised for MaTLAB 7.0.1(Release 14SP1)
March 2005
Online only
Revised for MATLAB 7.0.4(Release 14SP2)
June 2005
Seventh printing
Minor revision for MATLAB 7.0.4 Release
14SP2)
September 2005 Online only
Minor revision for MATLAB 7.1 Release
14SP3)
March 2006
Online only
Minor revision for MaTlAB 7.2 (Release
2006a)
September 2006 Eighth printing
Minor revision for MaTLAB 7.3(Release
2006b)
March 2007
Ninth printing
Minor revision for MATLAB 7. 4(Release
2007
September 2007 Tenth printing
Minor revision for MaTlAb 7.5( Release
2007b)
March 2008
Eleventh printing
Minor revision for MaTLAB 7.6 (Release
2008a)
October 2008 Twelfth printing
Minor revision for MATLAB 7.7 ( Release
2008b)
March 2009
Thirteenth printing
Minor revision for MaTLAB 7.8(Release
2009a)
September 2009 Fourteenth printing
Minor revision for MaTlAB 7.9 (Release
2009b)
March 2010
Fifteenth printing
Minor revision for MATLAB 7.10 Release
September 2010 Sixteenth printing
Revised for MATLAB 7. 11(R2010b)
ipi
Online only
Revised for MatLAB 7.12(r201la)
September 2011 Seventeenth printing
Revised for MaTLAB 7. 13(R2011b)
March 2012
Eighteenth printing
Revised for Version 7.14(R2012a)
(Renamed from MATLAB Getting Started
September 2012 Nineteenth printing
Revised for Version 8.0(R2012b)
March 2013
Twentieth printing
Revised for Version 8.1(R2013a
September 2013 Twenty-first printing
Revised for Version 8.2(R2013b)
March 2014
Twenty-second printing Revised for Version 8.3(R2014a
October 2014
Twenty-third printing
R
d for Version 8.4(R2014b)
March 2015
Twenty-fourth printing Revised for Version 8.5 (R2015a
September 2015 Twenty-fifth printing
Revised for Version 8.6(R2015b)
March 2016
Twenty-sixth printing
Revised for Version 9.0(R2016a)
Contents
Quick Start
MATLAB Product Description
1-2
Key Features
1-2
Desktop Basics
1-3
Matrices and arrays
1-5
Array Indexing
1-10
Workspace variables
1-13
Character Strings
1-15
Calling functions
1-17
2-D and 3-D Plots
1-19
Line plots
1-19
3-D Plot
1-23
Subplots
1-25
Programming and Scripts
1-27
Sample script
1-27
Loops and conditional Statements
1-28
ot location
1-30
Help and Documentation
1-31
Language Fundamentals
2
Matrices and Magic Squares
2-2
About matrices
2-2
Ent
g Matrices
2-4
sum, transpose, and diag
2-5
The magic Function
2-7
Generating Mati
2-8
Expressions...
2-9
Variables
2-9
Numbers
2-10
Matrix Operators
2-11
Array Operators
2-11
Functions
2-13
Examples of Expressions
2-14
Entering Commands
2-16
The format Function
2-16
Suppressing output
2-17
Entering Long Statements
2-17
Command Line editing
2-18
Indexing
2-19
Subscripts...
2-19
The Colon Operator
2-20
Concatenation
2-21
Deleting rows and columns
2-22
Scalar expansion
2-22
Logical Subscripting
2-23
The find function....,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2-24
Types of Arrays
2-26
Multidimensional arrays
2-26
Cell Arrays
2-28
Characters and Text
2-30
Structures
2-33
i Contents
Mathematics
3
Linear Algebra
3-2
Matrices in the matlab environment
3-2
Systems of Linear equations
3-10
Inverses and determinants
3-21
Factorizations
3-25
Powers and Exponentials
3-32
Eigenvalues
3-35
Singular values
3-38
Operations on Nonlinear functions
3-43
Function handles
3-43
Function functions
3-43
Multivariate data
3-46
Data Analysis
3-47
Introduction
3-47
Preprocessing Data
3-47
Summarizing data
3-53
Visualizing data
3-57
Modeling dat
3-68
Graphics
Basic Plotting Functions
4-2
Creating a Plot
4-2
Plotting Multiple data Sets in One graph
4-4
Specifying line styles and colors
4-6
Plotting Lines and markers
4-7
Graphing Imaginary and Complex data
4-9
Adding Plots to an Existing graph
4-10
Figure winde
4-12
Displaying Multiple Plots in One Figure
4-13
Controlling the Axes
4-14
Adding axis labels and Titles
4-16
Saving figures
4-17
Saving Workspace Data
4-18
Creating Mesh and Surface Plots
4-19
about mesh and surface plots
Ⅴ isualizing Functions of Two variables·
4-19
4-19
Display images
4-25
Image Data
4-25
Reading and writing Images
4-27
Printing Graphics
4-28
Overview of printing
4-28
Printing from the File M
4-28
Exporting the Figure to a graphics File
4-28
Using the Print command
4-29
Working
Graphics objects
4-31
Graphics objects
4-31
Setting object prope
4-34
Functions for Working with Objects
4-36
Passing arguments
4-37
Finding the Handles of Existing Objects
4-38
Programming
5
Control flow
Conditional control-if else. switch
5-2
Loop Control- for, while, continue, break
5-5
Program Termination -return
5-7
Vectorization
5-7
Preallocation
5-8
Scripts and functions
5-9
O
verview
5-9
5-10
Functions
5-11
Types of funct
5-12
Global variables
5-14
Contents
Command vs Function Syntax
5-15
【实例截图】
【核心代码】