MATLAB & Simulink
Language and Programming
Advanced MATLAB Programming Techniques
The two-day hands-on course is designed for intermediate users of MATLAB who wants to gain experience in using the features in MATLAB language to write efficient, robust, and well-organized code. These concepts form the foundation for writing full applications, developing algorithms, and extending built-in MATLAB capabilities. Details of performance optimization, as well as tools for writing, debugging, and profiling code are covered. Topics include:
· Utilizing development tools
· Verifying application behaviour
· Creating robust applications
· Structuring code
· Structuring data
· Managing data efficiently
· Creating a toolbox
- Learn to utilize integrated tools to manage code, diagnose problem, debug applications, and measure performance
- Learn to create tests to verify that code meets requirements
- Learn to create robust applications that withstand unexpected input and produce meaningful errors
- Learn to modularize code into readable and maintainable functions
- Learn the common techniques for improving performance when storing, accessing, and processing data
Techsource Systems is
Mathworks Sole and Authorised Distributor and Training Partner
Day 1 of 2
Utilizing Development Tools
Objective: Use integrated tools to manage code, diagnose problems, debug applications, and measure performance.
• Generating reports on multiple files
• Finding potential problems in code
• Debugging code
• Assessing code performance
Verifying Application Behavior
Objective: Create tests to verify that code meets requirements.
• Writing test scripts
• Running test scripts
• Using test functions
Creating Robust Applications
Objective: Create robust applications that withstand unexpected input and produce meaningful errors. Use built-in MATLAB functions and programming constructs, and employ standard techniques for handling error conditions.
• Creating flexible function interfaces
• Checking for warning and error conditions
• Working with the try-catch construct and MException objects
Day 2 of 2
Objective: Modularize code into readable and maintainable functions. Explore the different function types available in the MATLAB language and the tradeoffs associated with each type. See how function type affects the performance and reliability of the code.
• Private functions
• Local functions
• Nested functions
• Function handles
• Precedence rules
• Comparison of function types
Objective: Explore choices for storing data within a MATLAB application.
• Data types
• Cell and structure arrays
• Extracting data
• Concatenation and conversion
• Objects and classes
Managing Data Efficiently
Objective: Use common techniques for improving performance when storing, accessing, and processing data.
• Memory management
• Passing data between functions
Creating a Toolbox
Objective: Package code and documentation into a custom toolbox for distribution to other users.
• Creating documentation
• Packaging the toolbox
• Distributing the toolbox