% Benjamin Leone clc; clear; close all; Problem 1 A B C D E F = = = = = = [3 [7 [7 [3 [3 [3 5 5 5 5 6 6 3 3 5 5 5 3 1]'; 1]'; 1]'; 1]'; 1]'; 1]'; Tneg = [1 0 0 -3; 0 1 0 -5; 0 0 1 -5; 0 0 0 1]; Tpos = [1 0 0 3; 0 1 0 5; 0 0 1 5; 0 0 0 1]; M = [A B C D E F]; theta = 30; % degrees Rx = [1 0 0 0; 0 cosd(theta) sind(theta) 0; ... 0 -sind(theta) cosd(theta) 0; 0 0 0 1]; beta = [1.5 0 0 0; 0 1.5 0 0; 0 0 1.5 0; 0 0 0 1]; M1 = ((Tneg*Rx)*Tpos)*M sol = beta*M1 M1 = 3.0000 7.6603 -3.0718 1.0000 7.0000 7.6603 -3.0718 1.0000 7.0000 8.6603 -1.3397 1.0000 3.0000 8.6603 -1.3397 1.0000 3.0000 9.5263 -1.8397 1.0000 3.0000 8.5263 -3.5718 1.0000 10.5000 11.4904 -4.6077 1.0000 10.5000 12.9904 -2.0096 1.0000 4.5000 12.9904 -2.0096 1.0000 4.5000 14.2894 -2.7596 1.0000 4.5000 12.7894 -5.3577 1.0000 sol = 4.5000 11.4904 -4.6077 1.0000 Published with MATLAB® R2020b 1