Академический Документы
Профессиональный Документы
Культура Документы
Systems Lab 1
Lab instructor : Maheen Islam
Contact: maheen.islam@mail.au.edu.pk
Signals And Systems Lab - Lab engineer Maheen Islam- Electrical Department-Air University
CR
Class group-mail
Marks division
Quizzes 6%
Project 6%
Lab Notebook 3%
Assignments 3%
Lab performance 2%
Announcements
Introduction
Lab manual (individual)
Project Submission
Signals And Systems Lab - Lab engineer Maheen IslamElectrical Department-Air University
SystemDesign
Signals and
System
Control
engineering
Radar
Engineering
Regarding Projects
Project Proposal
deadline: Week
before mids.
Failure of
submission till
deadline will result
in deduction of 2%
marks and a project
will be assigned.
Image
Processing
4
Introduction of Matlab
Introduction of signals
Difference of continuous time and discrete
time signals, system properties
Topics under focus
Convolution, Fourier series, Continuous
time Fourier transform (CTFT), discrete
time Fourier transform (DTFT), Ztransform.
5
Signals And Systems Lab - Lab engineer Maheen IslamElectrical Department-Air University
Lab 1
Lab 2
Lab 3
Lab 4
Lab 5
Lab 6
Lab 7
Lab 8
Lab 9
Introduction
Product by MathWorks
http://www.mathworks.com
Versatile Tool
Software
Numerical
Data
Graphical
and
Computation
Analysis
Visualization
Hardware
interface
Contains a large collection of built- in functions and commands used in
an interactive mode, when you are in the command window
Matlab GUI
Editor
Window
Current
Folder
Simulink
Command
Window
Matlab
Workspace
Commands
10
Notes
MATLAB is case sensitive i.e; time, Time, TIME are three different
variables.
To recall previous commands MATLAB uses the up & down arrow keys.
If a statement does not fit on one line use three periods,, followed by
Enter to indicate that the statement continues on the next line. The
maximum number of characters allowed on a single line is 4096.
11
12
Try it
[1 2 0 3 1 5]
B=[1 2 0; 3 1 5; 0 4 -2] % will display a 3x3 matrix, each ; shows next row
Note
13
Addition +
Subtraction -
Multiplication *
Power or exponent ^
Transpose e.g A
Left division \
Right division /
x = 5;
F=x*C ;
14
== equal to
~= not equal to
15
Matrix Operations
Try It:
b=[5 4 2];
16
Matrix Operation
Colon Operator:
Q(:,2) gives a sub matrix with elements in all rows and the second column only.
The command Q(3,:) gives the elements in all columns and the third row only.
The command Q(1:2,2:3) gives the elements in the rows from 1 to 2 and in the
columns from 2 to 3
Q(:,:)
17
ones(m,n), which gives a matrix with the number one in all its m
rows and n columns
zeros(m,n), which gives a matrix with zeros in all its m rows and n
columns
Ans the default variable used for the most recent result. And this
variable is also used as a default variable to store any value.
I or j i=j=v-1
18
19
Pre-defined functions
20
Notes
21
Exercise-1.91
Create a vector
1.
a)
b)
2.
a)
b)
c)
d)
Let x = [3 2 6 8] and y = [4 1 3 5]
3.
a)
b)
c)
Multiply each element in x by the corresponding element in y and store the result in
z.
d)
22
Exercise-1.91
given a vector t = [1:0.2:2] write down the MATLAB
expressions that will correctly compute the following
4.
a)
ln(2 + t + t2 )
b)
( 1+ cos(3t) )
c)
cos2(t) + sin2(t)
d)
tan-1 (1)
e)
1+2t
23
That is:
A=
A=
1
4
7
1
2
7
8
2
3
6
13
4
4
6
0
6
24