Awesome!
Completion rate improved to 1.96SectionΒ 4. ChapterΒ 7
single
Challenge: Combined Transformations of a Vector
Swipe to show menu
Task
Swipe to start coding
You are given a 2D vector:
v=[23β]Your goal is to apply a scaling transformation followed by a 90Β° rotation using matrix multiplication, and visualize the results with arrows and coordinate labels from the origin.
The transformations are defined as:
- Scaling matrix: S=[20β00.5β]
- Rotation matrix (90Β°): R=[01ββ10β]
The combined transformation is applied as:
Rβ (Sβ v)Your task:
- Define the original vector and the two matrices (
SandR). - Use matrix multiplication to compute:
- The scaled vector.
- The rotated vector.
- The combined transformation.
- Plot all vectors (
v,SΒ·v, andRΒ·(SΒ·v)) as arrows from the origin with labeled tips and visible coordinate axes. - Verify that the computed vectors match the expected results after each transformation.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 7
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat