{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hmwrk 7

# hmwrk 7 - coordinate by 2%c B=[2 0;0 1 newpoint2=B*point...

This preview shows pages 1–3. Sign up to view the full content.

Question 1 : >> A=[-1 2 7;2 0 3;1 -2 4]; >> B=[1 -3 1;3 4 5;2 -1 8]; >> I=eye(3); >> A*B ans =     19     4    65      8    -9    26      3   -15    23 >> B*A ans =     -6     0     2     10    -4    53      4   -12    43 >> A*I ans =     -1     2     7      2     0     3      1    -2     4 >> A' ans =     -1     2     1      2     0    -2      7     3     4 >> det(B)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
ans =     68 >> inv(A) ans =    -0.1364    0.5000   -0.1364     0.1136    0.2500   -0.3864     0.0909         0    0.0909 Question 2: %HW7 Q2 %a) axis([-5 5 -5 5]) point=[1;1]; plot(point(1),point(2), 'k.' ) %b) A=[2 0;0 2]; newpoint1=A*point; plot(newpoint1(1),newpoint1(2), 'b.' ) %This moves the point to (2,2) (Multiplied the x coordinate by 2 and the y
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: coordinate by 2) %c) B=[2 0;0 1]; newpoint2=B*point; plot(newpoint2(1),newpoint2(2), 'g.' ) %This moves the point to (2,1) (Multiplied the x coordinate by 2 and the y coordinate by 1) %d) theta=pi/4; Rot_Mat=[cos(theta) -sin(theta);sin(theta) cos(theta)]; newpoint3=Rot_Mat*point; plot(newpoint3(1),newpoint3(2), 'y.' ) Question 3 >> Time=[.1 .2041 .4082 .6122 .8163 1.0204 1.2245 1.4286 1.6326 1.8367 2.0408]; >> Time(3)+Time(11) ans = 2.4490 >> Time(3)*Time(4) ans = 0.2499 >> Time(1)=0; >> Time Time = 0 0.2041 0.4082 0.6122 0.8163 1.0204 1.2245 1.4286 1.6326 1.8367 2.0408 >> find(Time==1.4286) ans = 8 >>...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern