Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am a bit confused on these two questions, do not know not exactly what they are asking Use matrix multiplication to first shift the

I am a bit confused on these two questions, do not know not exactly what they are asking

image text in transcribedimage text in transcribed

Use matrix multiplication to first shift the jet image 1 unit to the right and 1 unit down, then rotate 45 degrees counterclockwise, then scaled 2 units horizontally and units vertically. Include an image of your scaled jet in your report. We've gone over how to rotate images about the origin, but let's see how we can rotate image about any point (a, b). To do this, first translate the image -a units horizontally and -b units vertically, then rotate the image 0 radians, then translate the image back a units horizontally and b unit vertically. In the code below, you are creating a function called rot with three arguments/inputs: theta, a, b. Newjetmat = Transpose[{{1,0,5},{0,1,20},{0,0,1}}.Transpose (Revjetmat ]]; P1 = PlotImage [Newjet mat, -5,40,- 15,40,"title"); P2 = PlotImage (Revjetmat, -5,40, -15,40, "title"]; Show [P1, P2] Clear theta] rot[theta_,_,b_] := {{1,0,a},{0,1,b},{0,0,1}}-{{Cos[theta], -Sin (theta],0}, {Sin (theta], Cos[theta],0},{0,0,1}}-{{1,0,-a},{0,1,-b},{0,0,1}} Edit and add to the code above in order to create the image shown below. Copy and paste the block of code you wrote to create the image in your lab report. 40 30 20 10 10 20 30 40 - 10 Use matrix multiplication to first shift the jet image 1 unit to the right and 1 unit down, then rotate 45 degrees counterclockwise, then scaled 2 units horizontally and units vertically. Include an image of your scaled jet in your report. We've gone over how to rotate images about the origin, but let's see how we can rotate image about any point (a, b). To do this, first translate the image -a units horizontally and -b units vertically, then rotate the image 0 radians, then translate the image back a units horizontally and b unit vertically. In the code below, you are creating a function called rot with three arguments/inputs: theta, a, b. Newjetmat = Transpose[{{1,0,5},{0,1,20},{0,0,1}}.Transpose (Revjetmat ]]; P1 = PlotImage [Newjet mat, -5,40,- 15,40,"title"); P2 = PlotImage (Revjetmat, -5,40, -15,40, "title"]; Show [P1, P2] Clear theta] rot[theta_,_,b_] := {{1,0,a},{0,1,b},{0,0,1}}-{{Cos[theta], -Sin (theta],0}, {Sin (theta], Cos[theta],0},{0,0,1}}-{{1,0,-a},{0,1,-b},{0,0,1}} Edit and add to the code above in order to create the image shown below. Copy and paste the block of code you wrote to create the image in your lab report. 40 30 20 10 10 20 30 40 - 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

7 How should HRM practitioners approach conflict in the workplace?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago