Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Industries Academia Support User Community Company

 

Training - Courses

ML05: Integrating MATLAB with External Applications

This is a course for users who want to access environments outside of MATLAB. It provides the foundation needed to incorporate code from other environments (C, C++, Fortran, Java) into MATLAB. The focus is in C, but concepts are readily applicable to C++ and Fortran. It includes:

  • Using the mexFunction interface
  • Using mxArray
  • Understanding advanced functionalities of the MEX interface
  • Debugging MEX-files
  • Calling MATLAB from C via the Engine interface
  • Calling Java from MATLAB
VIEW SCHEDULE and Register SHARE with Manager/Colleague
 
 Detailed course outline

 

Day 1 of 1
Introduction
  • Objective: Understand MathWorks products and the goals of this course
  • Introduction to The MathWorks
  • Overview of MathWorks products
  • Course outline
The mexFunction

Objective: Gain an overall understanding of the MATLAB API and the MEX-file interface

  • MATLAB API
  • Introduction to MEX-files
  • Parts of a MEX-file
  • The mex script and mex script options
  • Setting up MATLAB to compile MEX-files
  • The MATLAB MEX interface
Introduction to mxArrays

Objective: Gain an overall understanding of the mxArray data structure to create, access, and query different data types

  • Working with MATLAB data
  • Working with the mxArray class
  • Using the mx and the mex prefix
  • Creating, accessing, and querying numeric and character arrays
  • Creating general-purpose routines
  • Working with structures and cell arrays
  • Working with sparse arrays
mxArray Management

Objective: Understanding memory management with mxArrays

  • Passing input and output arguments
  • Managing memory
  • Memory allocation
  • Memory de-allocation
  • Preventing memory leaks
  • Improper use of PRHS
  • Improper use of mxSet routines
Advanced MEX-File Topics

Objective: Gain an understanding of diagnostic error handling, passing variables, calling other M/MEX-files, and using clean-up functions in MEX-files

  • Displaying diagnostic messages
  • Passing variables into and out of MEX-Files
  • Calling other M/MEX-files
  • Using clean-up functions
  • Clearing files
  • Clearing variables
  • Extras
MEX-File Debugging

Objective: Understand how to debug a MEX-file

  • Overview of debugging
  • Compiling the MEX-file for debugging
  • Debugging on Windows using Microsoft Visual Studio
  • Debugging on UNIX
Java Calls from MATLAB

Objective: Understand how to call Java from MATLAB

  • Introduction to the MATLAB Java interface
  • Creating Java objects
  • Bringing in Java classes
  • Invoking methods on Java objects
  • Exploring the methods of an object
  • Using the call by reference nature of Java objects
  • Working with data
  • Using Java arrays
  • Working with GUIs built with Java
  • Connecting to the Internet with Java
Generic Shared Library Calls from MATLAB

Objective: Understand how to call DLLs from MATLAB

  • Overview
  • Loading and unloading libraries
  • Getting information about the library
  • Invoking library functions
  • Passing arguments
  • Converting data
Optional: MAT-File Applications

Objective: Understand how to read and write from a MAT-file

  • Introduction to MAT-files
  • Working with MAT-file applications
  • Using MAT-file API routines
  • Compiling MAT-file applications
Optional: Engine Applications

Objective: Understand how to call the MATLAB engine from a client application

  • Introduction to the MATLAB engine and related applications
  • Working with the MATLAB engine API
  • Opening and closing the MATLAB engine
  • Putting data into the engine
  • Retrieving data from the engine
  • Evaluating a MATLAB expression in the engine

 


Prerequisites

Familiarity with terminology and concepts related to programming in C (especially pointers). Experience with MATLAB and Java is recommended.

Course Length - 1  day

Price - $550.00

Request training
E-mail this page
Print this page

2008 Training Course Brochure

Exciting new courses and training options available now.