MATLAB CODE:
% GIVEN MATRIX A
A = [[0 0.5 0.5 6 6 5.5 5.5 0];[0 0 6.42 0 8 8 1.58 8];[1 1 1 1 1 1 1 1]];
%Now Plot A
subplot(2,2,1);
ax1 = plot(A(1,:),A(2,:));
axis([-5 10 -5 10]);
grid on;
xlabel('(1)');
%Scaling Matrix T1 scales A by 0.5
T1 = [[0.5 0 0];[0 0.5 0];[0 0 0.5];];
%Now Plot transformed A
subplot(2,2,2);
A = T1*A;
plot(A(1,:),A(2,:));
axis([-5 10 -5 10]);
grid on;
xlabel('(2)');
%Rotation Matrix T2 rotates A by 90*
T2 = [[0 -1 0];[1 0 0 ];[0 0 1]];
%Now Plot rotated A
subplot(2,2,3);
A = T2*A;
plot(A(1,:),A(2,:));
axis([-5 10 -5 10]);
grid on;
xlabel('(3)');
%Matrix T3 used to add (-0.5, 2) to each point if A
T3 = [-0.5;2;0];
%Add given coordinates to each coloumn of A
for i = 1:8
A(:,i) = T3+A(:,i);
end
%Now Plot final A
subplot(2,2,4);
plot(A(1,:),A(2,:));
axis([-5 10 -5 10]);
grid on;
xlabel('(4)');
OUTPUT:
Hi guys, this one needs to be done in MATLAB.thnx in advance. The capital letter N...
For this project, each part will be in its oun matlab script. You will be uploading a total 3 m files. Be sure to make your variable names descriptive, and add comments regularly to describe what your code is doing and hou your code aligns with the assignment 1 Iterative Methods: Conjugate Gradient In most software applications, row reduction is rarely used to solve a linear system Ar-b instead, an iterative algorithm like the one presented below is used. 1.1...