MATLAB Programming & SIMULINK Modeling Techniques for Advanced Users

register

Course Highlights

This is a two-day course for advanced users who wish to improve their knowledge on Matlab programming techniques and Simulink modeling techniques. This course provides the basic object-oriented programming which will be able to encapsulated data and methods, the foundation needed to incorporate code from other environments (C, C++, Fortran) into MATLAB as well as to integrate C and MATLAB into SIMULINK, and a working introduction to automatic code generation with Real-Time Workshop. The focus is in C, but concepts are readily applicable to C++ and Fortran.

Topics include:

  • Fundamentals of Object-Oriented Programming in MATLAB
  • The mexFunction
  • Introduction to mxArrays
  • Managing mxArrays
  • Advanced Topics in MEX-Files
  • Transitioning from MATLAB to Simulink
  • Calling External C Functions and Routines
  • The roles of Real-Time workshop
  • Nonreal-Time Applications with Simulation Targets

Course Objectives

The aim of this course is to elaborate Matlab as programming language and Simulink as system modeling environment for advanced users. Themes of object-oriented programming, incorporating external code into Matlab and Simulink as well as working introduction to automatic code generation with Real-Time Workshop are explored throughout the course.  

Who Must Attend

Professionals who wish to learn advanced programming techniques with MATLAB and advanced modeling techniques with SIMULINK.

Course Benefits

Upon the completion of the course, the participants will gain a comprehensive understanding of MATLAB as a programming language and SIMULINK as modeling environment which is essential and useful for designing and building larger and complex systems.

Prerequisites
Attended "MATLAB Programming for Intermediate Users" and "Comprehensive SIMILINK", or has equivalent experience in MATLAB and SIMULINK.


Course Outline

Fundamentals of Object-Oriented Programming in MATLAB
This section will introduce the fundamentals of object-oriented programming in MATLAB. It includes on how to represent objects in MATLAB, write class constructors and class methods, overload operators and functions, and review MATLAB precedence rules.

The mexFunction
You will gain an overall understanding of MATLAB API and the mex interface. Topics include 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, and the MATLAB MEX interface are discussed.

Introduction to mxArrays
You will gain an overall understanding of mxArrays data structure to create; access and query different data types. This section will elaborate on MATLAB data, the mxArray class, the mx and the mex prefix, numeric and character arrays, structures and Cell arrays and the mex prefix.

Managing mxArrays
You will be able to understand the memory management with mxArrays, how to pass input and output arguments, and preventing memory leaks.

Transitioning from MATLAB to Simulink
You will learn about the methods of integrating M-code into Simulink using Embedded MATLAB Functions and M-file S-Functions. This section will explain the benefits and drawbacks of Embedded MATLAB Functions, on how to convert a MATLAB function to an Embedded MATLAB Function as well as convert a MATLAB function to an M-file S-function.

Calling External C Functions and Routines
You will learn about the methods of integrating C code into Simulink. You will be able to call an external C routine using the Legacy Code Tool, write an S-function using the S-Function Builder, and call an external C routine using the S-Function Builder.

The roles of Real-Time workshop
This section explains the applications of Real-Time Workshop and how they fit in Simulink model-based design. It will explain the roles of Real-Time Workshop, the benefits of automatic code generation, provide an overview of Real-Time Workshop code architecture, and explain the constraints of Real-Time Workshop.

Nonreal-Time Applications with Simulation Targets
This section introduces the use of Real-Time Workshop to generate rapid simulation applications. It provides an overview to the S-function target and the rapid simulation target. It also explains on how to generate an S-function from a subsystem or a model.

Optional: Advanced Topics in MEX-Files
You will gain an understanding of diagnostic error handling, passing variables, calling other M/MEX-files and clean-up functions in MEX-files.

Exercises
Hands-on examples and exercises apply advanced techniques of Matlab programming and Simulink modeling.


Date::
  Please kindly check our Training Calendar
Venue:
  Activemedia Innovation
Time:
  10.00am - 5.30pm
Course Fee:
  Please contact our Training Consultants for details
Enquiries:
  6742 8173 enquiry@activemedia.com.sg