Lab3 DS412
Lab3 DS412
Objective: This lab explores compositions of linear transformations with the goal of understanding
their effects visually.
Background
The composition of linear transformations refers to the combination of two or more transformations
applied sequentially. If T1 : Rn → Rm and T2 : Rm → Rp are two linear transformations, their
composition is denoted as:
(T2 ◦ T1 )(x) = T2 (T1 (x)).
This composition results in a new linear transformation, which can also be represented by the product
of the corresponding matrices:
T2 ◦ T1 = M2 M1 .
The order of transformations is important since matrix multiplication is not commutative.
Apply the composition of these transformations (T6 followed by T7 ) to the input space. Plot
the following separate subplots within a single figure:
(a) The input space before any transformation.
(b) The transformed space after applying T6 .
(c) The transformed space after applying T7 .
(d) The composition of both transformations (T6 followed by T7 ).
This will allow you to observe how the transformations evolve separately and together within
the same figure.
2. Given the following transformation matrices:
1 1 −1 1 0
T8 = √ and T9 = .
2 1 1 0 −1
Apply the composition of these transformations (T8 followed by T9 ) to the input space. Plot
the following separate subplots within a single figure:
1
(a) The input space before any transformation.
(b) The transformed space after applying T8 .
(c) The transformed space after applying T9 .
(d) The composition of both transformations (T8 followed by T9 ).
Deliverables
1. MATLAB code for implementing and visualizing each transformation.
2. Plots comparing input and output spaces.
Submission Guidelines: Follow these simple steps for lab assignment submission:
1. Submit a lab report (PDF on LMS) and MATLAB code (.m files on MATLAB Grader).
2. The report must include: Objectives, Simulation Setup, Results, and Inferences.
3. Ensure originality in both the report and code. Plagiarism is strictly prohibited and will result
in penalties.