Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

Importing and Exporting Data

Copying External Data into MAT-File Format with Standalone Programs
List of Examples
Reading a MAT-File in C/C++
Creating a MAT-File in Fortran
Reading a MAT-File in Fortran

MATLAB Interface to Generic DLLs

Viewing Functions in the Command Window
Viewing Functions in a GUI
Invoking Library Functions
Examples of Passing Data to Shared Libraries
Constructing a libpointer Object
Creating a Pointer to a Primitive Type
Creating a Pointer to a Structure
Example — Creating a Cell Array from a libpointer
Multilevel Pointers
Example of Passing a libstruct Object
Using the Structure as an Object

Calling C/C++ and Fortran Programs from MATLAB

The explore Example

Creating C/C++ Language MEX-Files

Example — Handling Fortran Complex Return Type
Example — Symmetric Indefinite Factorization Using LAPACK
Passing a Scalar
Passing Strings
Passing Two or More Inputs or Outputs
Passing Structures and Cell Arrays
Handling Complex Data
Handling 8-, 16-, and 32-Bit Data
Manipulating Multidimensional Numerical Arrays
Handling Sparse Arrays
Calling Functions from C/C++ MEX-Files
Persistent Arrays

Creating Fortran MEX-Files

Passing a Scalar
Passing Strings
Passing Arrays of Strings
Passing Matrices
Passing Two or More Inputs or Outputs
Handling Complex Data
Dynamically Allocating Memory
Handling Sparse Matrices
Calling Functions from Fortran MEX-Files

Calling MATLAB from C and Fortran Programs

Calling MATLAB Software from a C Application
Calling MATLAB Software from a Fortran Application
Attaching to an Existing MATLAB Session
Windows Engine Example engwindemo
UNIX Engine Example engdemo

Calling Java from MATLAB

Concatenating Java Objects
Finding the Public Data Fields of an Object
Methodsview: Displaying a Listing of Java Methods
Creating an Array of Objects in MATLAB Software
Creating a New Array Reference
Creating a Copy of a Java Array
Passing Java Objects
Example — Calling an Overloaded Method
Converting to a MATLAB Structure
Converting to a MATLAB Cell Array
Example — Reading a URL
Example — Finding an Internet Protocol Address
Example — Creating and Using a Phone Book

Using .NET Framework

What Classes Are in a .NET Assembly?
Example — Choosing a Method Signature
Use .NET Enumerations to Test for Conditions
Example — Read Special System Folder Path
Create a .NET Collection
Convert a .NET Collection to a MATLAB Array
Access a Simple .NET Class
Load a Global .NET Assembly

COM Support

Example — Using Internet Explorer Program in a MATLAB Figure
Example — Grid ActiveX Control in a Figure
Example — Reading Excel Spreadsheet Data
Using a MATLAB Application as an Automation Client
Using COM Collections
Example — Running MATLAB Function from Visual Basic .NET Program
Example — Viewing Methods from a Visual Basic .NET Client
Example — Calling MATLAB Software from a Web Application
Example — Calling MATLAB Software from a C# Client

Web Services

Example — createClassFromWsdl Function
Example — SOAP Functions

Serial Port I/O

Getting Started
Example — Writing and Reading Text Data
Example — Parsing Input Data Using textscan
Example — Reading Binary Data
Example — Using Events and Callbacks
Example — Connecting Two Modems
Recording Information to Disk
Saving and Loading

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS