# Workshop on MATLAB

Date/Time: Date(s) - 25/10/2022 - 26/10/2022( 8:00 am - 5:00 pm )
Location: Online

#### Overview

MATLAB is a high-level language that enables you to quickly perform computation and visualization through easy-to-use programming constructs. The training provides a gentle introduction to the MATLAB computing environment, and it is designed to provide participants a full understanding of MATLAB including popular toolboxes. The training consists of interactive lectures and sample MATLAB problems that generally they face. Hands-on sessions help participants with the syntaxes and functions for use in programming. The tool helps at various stages in studying subjects related to processing and analysis during regular subjects throughout courses. No prior programming experience or knowledge of MATLAB is assumed. Concepts covered include basic use, graphical representations, and tips for designing and implementing MATLAB code.

### What is Matlab?

A programming language (like C, C++, Python) combined with a huge package of statistical and graphical tools. It is used by researchers across many fields to construct stimuli, run experiments, and analyze data. MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include:

• Math and computation
• Algorithm development
• Modeling, simulation, and prototyping
• Data analysis, exploration, and visualization
• Scientific and engineering graphics
• Application development, including Graphical User Interface building

#### Objectives

• to learn about the range of tools available in MATLAB
• to learn how to start MATLAB and use the command window
• to learn how to define and manipulate variables
• to learn how to write simple scripts

#### Part 1: Introduction to Matlab software and programming languages

• Defined matrices in MATLAB
• The rules of indexing in MATLAB
• Sum function to calculate the sum of the matrix elements
• Reshape function to resize a matrix
• Diag function to calculate the diagonal elements of the diagonal matrix and matrix
• Functions round, floor and ceil to convert non-integer numbers to integers
• Special matrix in MATLAB
• Repeat matrices and arrays using the function repmat
• Numbers and quantities, especially in MATLAB, including nan and inf

#### Part 2: data types in MATLAB

• Comparison operators
• Data types in MATLAB
• The rational and logical operators in MATLAB
• Numeric data types in MATLAB
• String data in MATLAB and related functions
• Complex numbers in MATLAB
• Cell arrays
• Structures in MATLAB

#### Part 3: The program control structures in MATLAB

• Directives and decisions related to the split (switch and if)
• Loops (while and for)
• The concept of allocated memory and its importance in accelerating MATLAB programs
• Its low level file commands using f open f close f printf f scan f
• Implement a program based on MATLAB

#### Part 4: definition and use of functions in MATLAB

• Defined functions in MATLAB
• The application functions in the implementation of programs
• Implementing functions with optional input parameters

#### Part 5: graphics and charting in MATLAB

• Use basic graphics functions in MATLAB
• Use the command plot and drawing of charts
• Use the command subplot to draw diagrams in a page
• Extracting the graphs drawn from MATLAB and use them in the context of scientific reports
• Charts settings
• The introduction of the bar to draw bar graphs
• The area to plot area under the curve
• Function to draw diagrams stairs step
• The stem to draw bar graphs
• Scaling axis to a logarithmic scale
• Introduction to the concept Handle Graphics MATLAB
• The use of color patterns using the color map
• Drawing a lot of statistical data by using the pie and pie3
• Drawing histogram using the command hist and histfit
• Three-dimensional plot
• Display three-dimensional data for the use of the surf and mesh
• Draw Contour is two-dimensional and three-dimensional
• Easy drawing two-dimensional functions and equations using the ezplot
• Easy three-dimensional mapping functions and equations using the ezsurf

#### Part 6: Manage files and data in MATLAB

• Get a list of files in a folder using dir command
• Managing files and folders
• Special directions system
• Standard file selection dialog to read and write using functions uigetfile, uiputfile
• Reading and writing Excel files by using MATLAB functions xlswrite, xlsread
• Conversion matrix in cell array and vice versa using the function mat2cell, cell2mat
• Storing data in files using the command save mat

#### Training Methodology

• Case Studies.
• Individual and group discussions and exercises.
• Intensive training by using templates, diagrams, and charts.
• Planning activities and presentations.
• Self-assessments.
• Action plan.

### Request Booking

Bookings are closed for this course.