Hmwrk 7 - 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

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

View Full Document Right Arrow Icon
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)
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
Background image of page 3
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

This note was uploaded on 04/28/2008 for the course GEEN 1300 taught by Professor Degrazia,j during the Spring '08 term at Colorado.

Page1 / 3

Hmwrk 7 - 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

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online