Question: Using MATLAB, I am required to form a matrix using triangular coordinates, perform matrix multiplication, and plot both the original and the transformed triangles in
Using MATLAB, I am required to form a matrix using triangular coordinates, perform matrix multiplication, and plot both the original and the transformed triangles in a single graph. The prompt is as follows:
For this activity, rotate the triangle formed by the points (0,0), (1,1), and (3,0) counterclockwise 60 about the origin. The order for drawing the triangle is to start at point (0,0), move to (1,1), then to (3,0), and end at (0,0).
%Create the standard matrix A that rotates a point 60 degrees counterclockwise about the origin.
%Form a matrix S containing the points of the triangle as the columns.
%Perform matrix multiplication to transform each of the points in S. Store this in T1.
%Plot the original triangle and the transformed triangle in a single graph.
%Do you run into any difficulties? Explain what is happening as a comment in your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
