# Matlab

## BASIC MATRIX OPERATION

Learn the basic skills required to be a successful MATLAB user with this ZCC Group course compelled specifically for students.

• ### Matrix formation:

MATLAB means Matrix Laboratory everything that MATLAB performs is in the Matrix form, thus it is essential to know how to create a matrix in MATLAB. Thus one must know how to perform the basic operation on the Matrix. In some way or the other these operation are quite useful during the Image Processing, Signal Processing etc.

There are some other operations also like mathematical operations: solving Algebraic equation and trigonometric equation using various methods like octave etc.

Graph plotting is very important concept in case of Signal Processing. Graphs can be plotted in 1-dimesion, 2-dimesion, 3 dimensions and can change the colour and design of the output using various commands like plot, bar changing colours in green, yellow, red and so on, we can also compare two figures and graphs and much more.

• Matrix multiplication
• Matrix division
• Operation on matrix elements
• Other mathematical operations(ceil, floor, rem (xy) and so on)
• Solving algebraic equations
• Graph plotting
• How to write polynomial equations and its plotting using MATLAB

### GRAPHICAL USER INTERFACE

GUIs (also known as graphical user interfaces or UIs) provide point-and-click control of software applications, eliminating the need to learn a language or type commands in order to run the application.
MATLAB apps are self-contained MATLAB programs with GUI front ends that automate a task or calculation. The GUI typically contains controls such as menus, toolbars, buttons, and sliders. Many MATLAB products, such as Curve Fitting Toolbox, Signal Processing Toolbox, and Control System Toolbox, include apps with custom user interfaces. You can also create your own custom apps, including their corresponding UIs, for others to use.

• How to create a GUI
• Calculator
• Sine Graph representation on GUI axes.
• How to put images on GUI
• Comparing two images and showing the result
• Image browse using MATLAB GUI
• Colour Changing using slider.

### DIGITAL IMAGE PROCESSING

In this portion we will learn how to convert the image from RGB (Red, Green, Blue) or say from coloured image to gray or Black-white form and we can see the variation and difference of the Colour between them through Matrix.

If one knows how to change an image to gray then they can easily compare two images and these types of application are quite seen. One can play with images as much as they want, one can change their pixel, contrast, brightness and much more.

In this we will learn how to take a snap through MATLAB using webcam and save that image into your system. One can also extract a single frame from Video like movie, or any video taken from your phone etc.

Every Video is made from a sequence of images so we can convert the images in to a video and vice-versa is also possible.

• Reading image and changing it from RGB to Gray and black/white:
• Comparing two Images
• Right and Left Shifting of Histogram
• Adjust Contrast Tool and Image
• Increasing Megapixel/Enlarging Image using MATLAB
• Accessing and Acquiring an image from webcam using MATLAB Code
• Extracting a single frame from Video.
• Video to Image and Image to Video Conversion.

### FACE DETECTION

Detection is done using the algorithm Viola-Jones. Using this algorithm one can detect the face from the image and also from the video. This algorithm usually detects the person’s eyes and other facial features using these features all the faces can be detected of a group of people. It stores the geometric structure of the face and detects the face. The computer vision system toolbox contains vision.

CascadeObjectDetector System object which detects objects based on above mentioned algorithm.

• Face detection technique on an image
• Face detection technique in a video

### DATA EXCHNAGE BETWEEN EXCEL AND MATLAB

We can read Microsoft Excel spreadsheet file in MATLAB and can generate a respective result in Excel file in form of matrix.

### CONTROLLING MOUSE POINTER & CAPS LOCK USING MATLAB

To perform this operation in MATLAB, we use java.awt Description which contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. Some components of it shoot events when a user interacts with the components. The AWT Event class and its subclasses are used to represent the events that AWT components can shoot.

• Moving Mouse Cursor at specific points
• Moving Mouse Cursor diagonally, vertically, horizontally.
• Making CAPS LOCK ON and CAPS LOCK OFF

Simulink provides a graphical editor, customizable block libraries, and solvers for modeling and simulating dynamic systems. It is integrated with MATLAB®, enabling you to incorporate MATLAB algorithms into models and export simulation results to MATLAB for further analysis.

• How to create SIMULINK and basic operation
• First Order Dynamic Model
• Second Order Dynamic Model
• Electronic Power Supply