| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
Use this list to find examples in the documentation.
Creating Integer Data
Largest and Smallest Values for Integer Classes
Querying the Present Warning State
Turning the Warning On
Turning the Warning Off
Turning Warnings On or Off Temporarily
Creating Floating-Point Data
Arithmetic Operations on Floating-Point Numbers
Largest and Smallest Values for Floating-Point Classes
Accuracy of Floating-Point Data
Example 1 — Round-Off or What You Get Is Not What You
Expect
Example 2 — Catastrophic Cancellation
Example 3 — Floating-Point Operations and Linear Algebra
Creating Complex Numbers
Infinity
NaN
Display Format Examples
Setting Numeric Format in a Program
Overview of the Logical Class
Examples of Identifying Logical Arrays
Examples of Functions that Return a Logical Result
Using Logical Arrays in Conditional Statements
Functions that Return a Logical Result
Creating a Character String
Creating an Array of Strings
Creating Character Arrays by Concatenation
Working with Space Characters
Converting to a Cell Array of Strings
Formatting Strings
Sequential and Numbered Argument Specification
The Formatting Operator
Specifying Field Width and Precision Outside the format String
Using Identifiers In the Width and Precision Fields
Comparing Strings for Equality
Comparing for Equality Using Operators
Categorizing Characters Within a String
Searching and Replacing
Converting to a Character Equivalent
Converting to a String of Numbers
Converting from a Character Equivalent
Converting from a Numeric String
Organizing Data in Structure Arrays
Example — A Simple Database
Handles to Anonymous Functions
Function Handle Arrays
Calling a Function Using Its Handle
Handling Values Returned From a Call
Example 1 — Run quad on Varying Functions
Example 2 — Run quad on Anonymous Functions
Example 3 — Compare quad Results on Different Functions
Example 1 — Constructing a Function Handle to Hold Data
Example 2 — Varying Data Values Stored in a Function
Handle
Example 3 — You Cannot Vary Data in a Handle to an Anonymous
Function
Examining a Function Handle
Converting a String to a Function Handle
Converting a Function Handle to a String
Comparing Handles Constructed from a Named Function
Comparing Handles to Anonymous Functions
Comparing Handles to Nested Functions
Comparing Handles Saved to a MAT-File
Constructing an Empty Map Object
Constructing An Initialized Map Object
Examining the Contents of the Map
Reading From the Map
Adding Key/Value Pairs
Building a Map with Concatenation
Removing Keys and Values from the Map
Modifying Values
Modifying Keys
Mapping to a Structure Array
Mapping to a Cell Array
Arithmetic Operators and Arrays
Relational Operators and Arrays
Element-Wise Operators and Functions
Logical Expressions Using the find Function
Bit-Wise Functions
Overriding Default Precedence
Generating a List from a Cell Array
Generating a List from a Structure
Assigning Output from a Comma-Separated List
Assigning to a Comma-Separated List
Constructing Arrays
Displaying Arrays
Concatenation
Function Call Arguments
Function Return Values
Fast Fourier Transform Example
Date Strings
Conversions Between Date Formats
Date String Formats
Converting Output Format with datestr
Current Date and Time
Character Types
Grouping Operators
Positional Operators
Lookaround Operators
Using Lookaround as a Logical Operator
Quantifiers
Using Tokens — Example 1
Using Tokens — Example 2
Named Capture
Labeling Your Output
Example of a Dynamic Expression
Dynamic Expressions that Modify the Match Expression —
(??expr)
Dynamic Commands that Modify the Match Expression —
(??@cmd)
Dynamic Commands that Serve a Functional Purpose — (?@cmd)
Dynamic Commands that Modify the Replacement Expression —
${cmd}
Finding a Single Pattern in Multiple Strings
Finding Multiple Patterns in Multiple Strings
Replacing Multiple Strings
Basic Parts of an M-File
Creating a Simple M-File
Simple Script Example
Simple Function Example
Detailed Display of M-File Dependencies
MATLAB Command Syntax
MATLAB Function Syntax
Example 1 — Simple Variable Comparison
Querying Which Function Gets Called
Passing String Arguments
Passing Filename Arguments
Passing Function Handle Arguments
Passing Arguments in a Structure
Passing Arguments in a Cell Array
Passing Variable Numbers of Arguments
Unpacking varargin Contents
Packing varargout Contents
Using varargin and varargout in Argument Lists
Checking the Number of Input Arguments
Subfunctions
Vectorizing Loops
Constructing an Anonymous Function
A Two-Input Example
Evaluating With No Input Arguments
Changing Variables Used in an Anonymous Function
Example 1 — Passing a Function to quad
Example 2 — Multiple Anonymous Functions
Writing Nested Functions
Example — More Than One Nested Function
Example — Multiply Nested Functions
Calling Nested Functions
Variable Scope in Nested Functions
The Scope of Output Variables
Using Function Handles
with Nested Functions
Defining Variables When Calling Via Function Handle
Example Using Externally Scoped Variables
Separate Instances of Externally Scoped Variables
Example 1 — Creating a Function Handle for a Nested
Function
Example 2 — Function-Generating Functions
Formatted Message Strings
Message Identifiers
Example 1 — Enabling a Selected Warning
Example 2 — Disabling the Most Recent Warning
Output from Control Statements
Output Structure Array
Example 1 — Performing an Explicit Query
Example 2 — Performing an Implicit Query
Example 1 — Displaying a Stack Trace on a Specific Warning
Example 2 — Enabling Verbose Warnings
Stopwatch Timer Functions
Simple Example of Vectorizing
Advanced Example of Vectorizing

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |