0% found this document useful (0 votes)
881 views

EVID Solutions and IEEE SPCE-SPIT

1. The document discusses topics related to MATLAB, image processing, steganography, encryption, and compression that will be covered over two days of training. 2. On day 1, the agenda includes introductions to MATLAB, GUI development in MATLAB, image processing, and steganography. 3. Key MATLAB concepts that will be covered are the environment, matrix manipulation, functions, loops, and plotting. Basic image processing commands will also be introduced.

Uploaded by

hail_ron
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
881 views

EVID Solutions and IEEE SPCE-SPIT

1. The document discusses topics related to MATLAB, image processing, steganography, encryption, and compression that will be covered over two days of training. 2. On day 1, the agenda includes introductions to MATLAB, GUI development in MATLAB, image processing, and steganography. 3. Key MATLAB concepts that will be covered are the environment, matrix manipulation, functions, loops, and plotting. Basic image processing commands will also be introduced.

Uploaded by

hail_ron
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 23

EVID Solutions and IEEE SPCE-SPIT

Presents

11/02/21 EVID Solutions


Topics Covered
MATLAB
MATLAB – GUI
Image Processing
Steganography
Steganography – GUI
Encryption
Compression
Agenda for Day-1
MATLAB
MATLAB – GUI
Image Processing
Steganography – An Introduction
Topics Covered
What is MATLAB?
MATLAB Environment
Matrix Manipulation
Functions
Loops
Plots
Basic IP Commands
What is MATLAB?
A research and development tool

Developed by Mathworks Inc.

MATLAB = MATrix LABoratory

Why MATLAB?
MATLAB Environment
Command Window
Workspace
Command History
M-File Editor
MATLAB
1.
Environment
Command Window, Workspace

2. Command History

11/02/21
MATRIX Manipulations
• Defining an Integer:

• Defining a 2-d column Matrix:


• Defining a 2-d row Matrix:



MATRIX Manipulations
• Defining a general 2-d Matrix:

• Defining a general 3-d Matrix:

• Defining a blank Matrix:


Operators - Arithmetic
+ Addition
- Subtraction
* Multiplication
/ Division
\ Left division
^ Power
‘ Complex conjugate transpose
() Specify evaluation order
Operators – Relational
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
== Equal to
~= Not equal to
Operators - Logical
AND A&B
OR A|B
NOT ~A
XOR xor(A,B)
Exercise 1
Optimal code for
 Taking Input from 1 to 10
 Getting square of each integer
 Summation of all squares
 Display of final value
Functions
• For finding inverse of matrix;
x= inv(a);

• For finding the determinant of matrix;


x= det(a);

• For finding the transpose of matrix;


x= trans(a);

• For Calculating the square root;


x= sqrtm(a);

• For calculating the sum of all elements;


x= sum(a);
Functions
• To create a matrix with all elements as 1;
x= ones(k);

• To create magic square matrix;


x= magic(k);

• For finding the size of matrix;


x= size(a);

• For finding the number of elements in matrix;


x= numel(a);

• For finding the maximum, minimum value in a


matrix;
x= max(a); y=min(a);
Loops in MATLAB
• Main types:
1. for:
for i=1:10
//Place your code here
end

2. while:
while(1)
//Place your code here
end

3. if:
if (Condition)
//Place your code here
end
Exercise 2
Optimal Code for
Take any two input numbers
Convert them into 8-bit binary
 Concatenate both of them together
 Form 5-6-5 matrices from the available 16-bit data
Plots in MATLAB
Commands covered: plot, xlabel, ylabel, title grid,
axis, stem, subplot
xlabel('time (sec)'); ylabel('step response'); title('My
Plot');
Eg:To plot more than one graph on the screen, use
the command subplot(mnp) which partitions the
screen into an mxn grid where p determines the
position of the particular graph counting the upper
left corner as p=1. For example,
subplot(211),semilogx(w,magdb);
subplot(212),semilogx(w,phase);
3-d Plots in MATLAB
x=[0:10]; y=[0:10]; z=x’*y;
mesh(x,y,z); title(‘3-D Graph’);
Exercise 3
Optimal Code for
Create 5 x 5 matrix in Excel
 Import the matrix in MATLAB
 Use masking to remove any value above 100
Export the matrix from MATLAB
Read new image in Excel
Basic IP Commands
To Read an Image:
 imread()

To Display an Image:


 imshow()
 imview()

To Write an Image:


Imwrite()

You might also like