\%creat the standard matrix A that rotates a point 60 degrees counterclockwise about the origin. angle =60; Kangle in de
Posted: Thu Jul 14, 2022 2:10 pm
\%creat the standard matrix A that rotates a point 60 degrees counterclockwise about the origin. angle =60; Kangle in degree theta = angle"pi/180; Xconverting angle in radian A=[[cos( theta )−sin( theta) ]; [sin(theta) cos( theta )]]; xtransformation matrix XCreate a matrix S containing the points of the triangle as the colums. S=[0130]:[0100]; X्रPerform matrix multiplication to transform each of the points in S. Store this in T. T1=A∗ S xplot the original triangle and the transformed triangle in a single graph. plot (S(1,:),S(2,:),T1(1,:),T1(2,:)); Woo you run into any difficulties? Explain what is happening as a coment in your code. Assessment: 0 of 4 Tests Passed
Assessment: 0 of 4 Tests Passed * Standard matrix A is correct Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in solution (line 6) A=[[cos( theta )−sin( theta )];[sin( theta )cos( theta) ]];% otransformation matrix Feedback hidden for errors below, as these errors may be due to the initial error. She Matrix of points, S, is correct 《 Matrix of transformed points T1 is correct (8) Plot command is used
Assessment: 0 of 4 Tests Passed * Standard matrix A is correct Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in solution (line 6) A=[[cos( theta )−sin( theta )];[sin( theta )cos( theta) ]];% otransformation matrix Feedback hidden for errors below, as these errors may be due to the initial error. She Matrix of points, S, is correct 《 Matrix of transformed points T1 is correct (8) Plot command is used