MATLAB The Language of Technical Computing Computation Visualization Programming Getting Started with MATLAB The MathWorks Version 6
Computation Visualization Programming Getting Started with MATLAB Version 6 MATLABÆ The Language of Technical Computing
Contents Introduction What Is matlaB? The MATLAB System MATLAB Documentatio MATLAB Online Help Development Environment Starting and quitting MATLAB 22 Starting MATLAB Quitting MATLAB MATLAB Desktop 2 Desktop Tools Command window Start Button and launch pad 27 Help Browser nt Directory Brows 2-10 pace Browser Editor/Debugger 2-14 Profiler 2-15 Other Development Environment Features
i Contents 1 Introduction What Is MATLAB? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 The MATLAB System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 MATLAB Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 MATLAB Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 2 Development Environment Starting and Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 MATLAB Desktop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Desktop Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 Command Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 Start Button and Launch Pad . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 Help Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 Current Directory Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 Workspace Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 Editor/Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14 Profiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 Other Development Environment Features . . . . . . . . . . . . 2-16
Manipulating Matrices Matrices and Magic Squares 32 Entering Matrices 33 sum, transpose and diag Subscripts 36 The Colon Operator 3.7 The magic Function 3-8 Expressions Variables 10 Numb 3-10 perators Functions 3-11 Examples of Expressions 3-13 Working with Matrices 3-14 Generating Matrices The load Function M-Files 3-15 Concatenation Deleting Rows and Columns 3-17 More About Matrices and Arrays 3-18 Linear algebra 18 Arrays Multivariate data Scalar Expansion 3-25 Logical Subscripting The find Function 3-27 Controlling Command window Input and Output The format function Suppressing Out 3-30 Entering Long Statements d Line editing
ii Contents 3 Manipulating Matrices Matrices and Magic Squares . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Entering Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 sum, transpose, and diag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Subscripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 The Colon Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 The magic Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 Examples of Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 Working with Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 Generating Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 The load Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 M-Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 Deleting Rows and Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 More About Matrices and Arrays . . . . . . . . . . . . . . . . . . . . . . 3-18 Linear Algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21 Multivariate Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24 Scalar Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25 Logical Subscripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26 The find Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27 Controlling Command Window Input and Output . . . . . . . 3-28 The format Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28 Suppressing Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 Entering Long Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 Command Line Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30
raphics Basic Plotting 42 Creating a Plot. 42 Multiple Data Sets in One graph Specifying Line Styles and Colors Plotting Lines and Markers 45 Imaginary and Complex Data 46 Adding Plots to an Existing graph 47 Indows Multiple Plots in One Figure 49 4-10 Axis Labels and Titles 4-12 Editing Plots 4-14 Interactive Plot Editing 414 Using Functions to Edit Graphs 414 Using Plot Editing Mode 4-15 sing the Prop 416 Mesh and Surface plots 418 Visualizing Functions of Two variables 418 Imag 4-22 Printing Graphics 4-24 Handle graphics 4-26 Setting Object Properties Finding the Handles of Existing Objects Graphics User Interfaces Graphical User Interface Design Tools 4-33 Animations 4-34 Erase mode method 4-34 Creating Movies 4-35
iii 4 Graphics Basic Plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Creating a Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Multiple Data Sets in One Graph . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Specifying Line Styles and Colors . . . . . . . . . . . . . . . . . . . . . . . . 4-4 Plotting Lines and Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 Imaginary and Complex Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 Adding Plots to an Existing Graph . . . . . . . . . . . . . . . . . . . . . . . 4-7 Figure Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8 Multiple Plots in One Figure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Controlling the Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10 Axis Labels and Titles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12 Saving a Figure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13 Editing Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14 Interactive Plot Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14 Using Functions to Edit Graphs . . . . . . . . . . . . . . . . . . . . . . . . 4-14 Using Plot Editing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15 Using the Property Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16 Mesh and Surface Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18 Visualizing Functions of Two Variables . . . . . . . . . . . . . . . . . . 4-18 Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22 Printing Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-24 Handle Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-26 Graphics Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-26 Setting Object Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-28 Finding the Handles of Existing Objects . . . . . . . . . . . . . . . . . 4-31 Graphics User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-33 Graphical User Interface Design Tools . . . . . . . . . . . . . . . . . . . 4-33 Animations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34 Erase Mode Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34 Creating Movies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-35
Programming with MATLAB 5 Flow Control 52 if 5-2 fo continue break 5-6 Other Data Structures 5·7 Multidimensional Arrays.... Cell Arrays 59 Characters and Text 5-11 Structures 514 Scripts and Functions 5-18 Functions 5-21 Passing String Arguments to Functions The eval function Vectorization Preallocation 5-24 Function handles 5-24 Function Functions Demonstration Programs Included with MATLAB 5-28 Matrix Demonstration Programs 529 Numeric Demonstration Programs 530 Graphics Demonstration Programs 531 Language Demonstration Programs Differential Equations Demonstration Programs 533 Automation Client Interface(COM) Gallery Demonstration Programs 5-34 Miscellaneous Demonstration Progran 536 Getting More Information
iv Contents 5 Programming with MATLAB Flow Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 switch and case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 while . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 continue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 break . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 Other Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 Multidimensional Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 Cell Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9 Characters and Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14 Scripts and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 Global Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21 Passing String Arguments to Functions . . . . . . . . . . . . . . . . . . 5-21 The eval Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23 Vectorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23 Preallocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24 Function Handles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24 Function Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25 Demonstration Programs Included with MATLAB . . . . . . 5-28 Matrix Demonstration Programs . . . . . . . . . . . . . . . . . . . . . . . 5-29 Numeric Demonstration Programs . . . . . . . . . . . . . . . . . . . . . . 5-30 Graphics Demonstration Programs . . . . . . . . . . . . . . . . . . . . . 5-31 Language Demonstration Programs . . . . . . . . . . . . . . . . . . . . . 5-32 Differential Equations Demonstration Programs . . . . . . . . . . 5-33 Automation Client Interface (COM) . . . . . . . . . . . . . . . . . . . . . 5-34 Gallery Demonstration Programs . . . . . . . . . . . . . . . . . . . . . . . 5-34 Miscellaneous Demonstration Programs . . . . . . . . . . . . . . . . . 5-36 Getting More Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36
Introduction What Is MAtLAB?(p. 1-2) Provides an overview of the main features of matlab MATLAB Documentation(p. 1-4) Describes the MATLAB documentation, including online and printed user guides and reference materials
1 Introduction What Is MATLAB? (p. 1-2) Provides an overview of the main features of MATLAB. MATLAB Documentation (p. 1-4) Describes the MATLAB documentation, including online and printed user guides and reference materials
What Is matlab? MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use where problems and solutions are d in famili mathematical notation. Typical uses include · Math and computation Modeling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics Application development, including graphical user interface building MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. This allows you to solve many technical computing problems, especially those with matrix and vector formulations, in a fraction of the time it would take to write a program in a scalar noninteractive language such as C or Fortran. The name MatlaB stands for matrix laboratory MAtLAB was originally written to provide easy access to matrix software developed by the lINpacK and EISPACK projects. Today, MATLAB engines incorporate the LAPACK d BLaS libraries, embedding the state of the art in software for matrix MATLAB has evolved over a period of years with input from many users. In university environments, it is the standard instructional tool for introductory nd advanced courses in mathematics, engineering, and science. In industry MATLAB is the tool of choice for high-productivity research, development, and MATLAB features a family of add-on application-specific solutions called toolboxes. Very important to most users of MATLAB, toolboxes allow you to learn and apply specialized technology Toolboxes are comprehensive collections of MATLAB functions(M-files )that extend the matlaB environment to solve particular classes of problems. Areas in which toolboxes are available include signal processing, control systems, neural networks fuzzy logic, wavelets, simulation, and man 1-2
1 Introduction 1-2 What Is MATLAB? MATLAB® is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include • Math and computation • Algorithm development • Data acquisition • Modeling, simulation, and prototyping • Data analysis, exploration, and visualization • Scientific and engineering graphics • Application development, including graphical user interface building MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. This allows you to solve many technical computing problems, especially those with matrix and vector formulations, in a fraction of the time it would take to write a program in a scalar noninteractive language such as C or Fortran. The name MATLAB stands for matrix laboratory. MATLAB was originally written to provide easy access to matrix software developed by the LINPACK and EISPACK projects. Today, MATLAB engines incorporate the LAPACK and BLAS libraries, embedding the state of the art in software for matrix computation. MATLAB has evolved over a period of years with input from many users. In university environments, it is the standard instructional tool for introductory and advanced courses in mathematics, engineering, and science. In industry, MATLAB is the tool of choice for high-productivity research, development, and analysis. MATLAB features a family of add-on application-specific solutions called toolboxes. Very important to most users of MATLAB, toolboxes allow you to learn and apply specialized technology. Toolboxes are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB environment to solve particular classes of problems. Areas in which toolboxes are available include signal processing, control systems, neural networks, fuzzy logic, wavelets, simulation, and many others
What Is matlabe The MATLAB System The MATLAB system consists of five main parts Development Environment. This is the set of tools and facilities that help you use MATLAB functions and files. Many of these tools are graphical user interfaces It includes the matlab desktop and Command window, a command history n editor and debugger and browsers for viewing help the workspace, files and the search path The MATLAB Mathematical Function Library. This is a vast collection of computational algorithms ranging from elementary functions like sum, sine, cosine, and complex arithmetic, to more sophisticated functions like matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms The MATLAB Language. This is a high-level matrix/array language with control flow statements, functions, data structures, input/output, and object-oriented programming features. It allows both"programming in the small "to rapidly create quick and dirty throw-away programs, and"programming in the large to create complete large and complex application programs Graphics. MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. It includes high-level functions for two-dimensional and three-dimensional data visualization, image processing, animation, and presentation graphics. It also includes low-level functions that allow you to fully customize the appearance of graphics as well as to build complete graphical user interfaces on your MATLAB applications The MATLAB Application Program Interface (APl]. This is a library that allows you t write C and Fortran programs that interact with MATLAB. It includes facilities for calling routines from MatLAB (dynamic linking), calling MATLAB as a computational engine and for reading and writing Mat-files
What Is MATLAB? 1-3 The MATLAB System The MATLAB system consists of five main parts: Development Environment. This is the set of tools and facilities that help you use MATLAB functions and files. Many of these tools are graphical user interfaces. It includes the MATLAB desktop and Command Window, a command history, an editor and debugger, and browsers for viewing help, the workspace, files, and the search path. The MATLAB Mathematical Function Library. This is a vast collection of computational algorithms ranging from elementary functions like sum, sine, cosine, and complex arithmetic, to more sophisticated functions like matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms. The MATLAB Language. This is a high-level matrix/array language with control flow statements, functions, data structures, input/output, and object-oriented programming features. It allows both “programming in the small” to rapidly create quick and dirty throw-away programs, and “programming in the large” to create complete large and complex application programs. Graphics. MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. It includes high-level functions for two-dimensional and three-dimensional data visualization, image processing, animation, and presentation graphics. It also includes low-level functions that allow you to fully customize the appearance of graphics as well as to build complete graphical user interfaces on your MATLAB applications. The MATLAB Application Program Interface (API). This is a library that allows you to write C and Fortran programs that interact with MATLAB. It includes facilities for calling routines from MATLAB (dynamic linking), calling MATLAB as a computational engine, and for reading and writing MAT-files
Introduction MATLAB D。 cumentati。n MATLAB provides extensive documentation, in both printed and online format, to help you learn about and use all of its features. If you are a new user start with this book, Getting Started with MaTLAB, which introduces you to MATLAB. It covers all the primary matlab features at a high level, including many examples to help you to learn the material quickly Chapter 2, "Development Environment,-Introduces the MATLAB development environment, including information about tools and the MATLAB desktop · Chapter3,“ Manipulating Matrices”- Introduces how to use matlab to generate matrices and perform mathematical operations on matrices Chapter 4, "Graphics"-Introduces mATlAB graphic capabilities, including information about plotting data, annotating graphs, and working with · Chapter5,“ Programming with MATLAB”- Describes how to use the MATLAB language to create scripts and functions, and manipulate data structures, such as cell arrays and multidimensional arrays. This section also provides an overview of the demo programs included with MATLAB To find more detailed information about any of these topics, use the matlab online help. The online help provides task-oriented and reference informatio about matlab features. The matlab documentation is also available in printed form and in PDF format MATLAB Online Help To view the online documentation, select MATLAB Help from the Help menu in MATLAB. For more information about using the online documentation, see "Help Browser"on page 2-7. For MaTLAB, the documentation is organized into these main topics Development Environment--Provides complete information on the MATLAB desktop Mathematics-Describes how to use matlab mathematical and statistical capabilities 1-4
1 Introduction 1-4 MATLAB Documentation MATLAB provides extensive documentation, in both printed and online format, to help you learn about and use all of its features. If you are a new user, start with this book, Getting Started with MATLAB, which introduces you to MATLAB. It covers all the primary MATLAB features at a high level, including many examples to help you to learn the material quickly: • Chapter 2, “Development Environment”—Introduces the MATLAB development environment, including information about tools and the MATLAB desktop. • Chapter 3, “Manipulating Matrices”—Introduces how to use MATLAB to generate matrices and perform mathematical operations on matrices. • Chapter 4, “Graphics”—Introduces MATLAB graphic capabilities, including information about plotting data, annotating graphs, and working with images. • Chapter 5, “Programming with MATLAB”—Describes how to use the MATLAB language to create scripts and functions, and manipulate data structures, such as cell arrays and multidimensional arrays. This section also provides an overview of the demo programs included with MATLAB. To find more detailed information about any of these topics, use the MATLAB online help. The online help provides task-oriented and reference information about MATLAB features. The MATLAB documentation is also available in printed form and in PDF format. MATLAB Online Help To view the online documentation, select MATLAB Help from the Help menu in MATLAB. For more information about using the online documentation, see “Help Browser” on page 2-7. For MATLAB, the documentation is organized into these main topics: • Development Environment—Provides complete information on the MATLAB desktop. • Mathematics—Describes how to use MATLAB mathematical and statistical capabilities
MATLAB Documentation Programming and Data Types-Describes how to create scripts and functions using the matlab language Graphics-Describes how to plot your data using mATLAB graphics .3-D Visualization--Introduces how to use views, lighting, and transparency to achieve more complex graphic effects than can be achieved using the basic plotting functions Creating Graphical User Interfaces-Describes how to use MATLAB graphical user interface layout tools External interfaces/API-Describes matlab interfaces to C and Fortran programs, Java classes and objects, COM objects, data files, serial port IO and dDe In addition to the above documentation matlab documentation includes the following reference material Functions- By Category--Lists all the core MATLAB functions. Each function has a reference page that provides the syntax, description mathematical algorithm(where appropriate ), and related functions You can also access any function reference page using the "Functions Handle graphics Property Browser-Enables you to easily access descriptions of graphics object properties. For more information about MATLAB graphics, see"Handle graphics"on page 4-26 External Interfaces/API Reference---Covers those functions used by the MATLAB external interfaces, providing information on syntax in the calling language, description, arguments, return values, and examples MATLAB online documentation also includes Examples--An index of major examples included in the documentation Release Notes-Introduces new features and identifies known problems in Printable documentation - Provides access to the pdf versions of the documentation, which are suitable for printing. 1-5
MATLAB Documentation 1-5 • Programming and Data Types—Describes how to create scripts and functions using the MATLAB language. • Graphics—Describes how to plot your data using MATLAB graphics capabilities. • 3-D Visualization—Introduces how to use views, lighting, and transparency to achieve more complex graphic effects than can be achieved using the basic plotting functions. • Creating Graphical User Interfaces—Describes how to use MATLAB graphical user interface layout tools. • External Interfaces/API—Describes MATLAB interfaces to C and Fortran programs, Java classes and objects, COM objects, data files, serial port I/O, and DDE. In addition to the above documentation, MATLAB documentation includes the following reference material: • Functions - By Category—Lists all the core MATLAB functions. Each function has a reference page that provides the syntax, description, mathematical algorithm (where appropriate), and related functions. You can also access any function reference page using the “Functions - Alphabetical List”. • Handle Graphics Property Browser—Enables you to easily access descriptions of graphics object properties. For more information about MATLAB graphics, see “Handle Graphics” on page 4-26 • External Interfaces/API Reference—Covers those functions used by the MATLAB external interfaces, providing information on syntax in the calling language, description, arguments, return values, and examples. MATLAB online documentation also includes • Examples—An index of major examples included in the documentation. • Release Notes—Introduces new features and identifies known problems in the current release. • Printable Documentation—Provides access to the PDF versions of the documentation, which are suitable for printing