Advanced MATLAB Programming Techniques
This course expands on material in the MATLABĀ® Fundamentals and Programming Techniques course, and covers programming concepts, improving code performance, argument checking and exception handling, code diagnostic techniques and function handles.
Level
Advanced
Training Duration
1 day
Who Should Attend?
MATLAB users with introductory-to-intermediate knowledge of MATLAB
Prerequisites
MATLAB Fundamentals and Programming Techniques (ML01), or equivalent experience using MATLAB
Software Tools
Current version of MATLAB
Skills Gained
After completing this comprehensive training, you will have the necessary skills to use:
- New Programming concepts
- Argument checking and exception handling
- Code diagnostic tools and techniques
- Methods for improving code performance
- Function handles
Course Outline
Introduction
Prepare for the day and understand The MathWorks products as they relate to MATLAB.
- Quick overview of The MathWorks and the family of products
- Course setup, materials, and logistics
- Big picture view of the course ahead
M-File Programming
Understand M-file programming basics using the new IDE.
- The MATLAB workspace and visual directory
- Automatic code generation features
- The MATLAB editor
- Script and function M-files
- Programming keywords and constructions
- MATLAB precedence rules
- M-file cells
- M-file publishing
- M-file best practices
Argument Checking and Exception Handling
Write M-files with increased flexibility and the ability to handle exception arguments.
- Variable numbers of input and output arguments
- Error and warning messages
- Exception handling
Code Diagnostics
Introduce diagnostic tools for investigating correctness and efficiency of MATLAB code.
- MATLAB debugger
- Visual directory tools
- MATLAB profiler
Improving Code Performance
Techniques for writing more efficient code.
- Memory preallocation and management
- Vectorization techniques
- The MATLAB Accelerator
- MEX-files and the MATLAB Compiler
Function Handles
Use function handles to pass functional arguments to MATLAB "function functions".
- Representing and evaluating functions in MATLAB
- When to use function handles
- The function handle data type
- Function functions
- Optimization function functions
- Integration function functions
- ODE function functions
Event Schedule
No events found. Event request.







