Write a program to find product of a row vector, U having dimension 1 x 2 with a 2 x 2 matrix, A. The input to the program includes initialized row vector, U and matrix, A. The expected output is a transformed row vector. You can test your program using following example: A =
| 2 | 4 |
| 5 | 1 |
4 5 1 and U = [3 2] The result of product U.A is a transformed row vector: [16 14]
Q2. Write a program to find product of a column vector, V having dimension 2 x 1 with a 2 x 2 matrix, A. The input to the program includes initialized column vector, V and matrix, A. The expected output is a transformed column vector. You can test your program using following example: A =
| 2 | 4 |
| 5 | 1 |
and V = [ 2 5 ]
The result of product V.A is a transformed column vector: [14 15]
Q3. Write a program to find sum of two matrices, each having dimensions 2 x 2.
Q4. Write a program to find transpose of a 3 x 2 matrix. The resulting transposed matrix would be of size 2 x 3. 5
% QUESTION 1
% A has dimention 2 x 2
A=[2 4 ; 5 1];
%U having dimension 1 x 2
U=[3 2];
j=1;
s=0;
k=1;
% row vector representation
for i =1:2
for j=1:2
s=s+A(j,i)*U(j);
end
M(k)=s;
k=k+1 ;
s=0;
end
fprintf('Row vector is : \n');
for i=1:2
fprintf('%d ',M(i));
end
SCREEN SHOT


OUTPUT


%QUESTION 2
% A has dimention 2 x 2
A=[2 4 ; 5 1];
% V has dimention 2 x 1
V=[2;5];
j=1;
s=0;
k=1;
% row vector representation
for i =1:2
for j=1:2
s=s+A(i,j)*V(j);
end
M(k)=s;
k=k+1 ;
s=0;
end
fprintf('Column vector is : \n');
for i=1:2
fprintf('%d\n',M(i));
end
SCREEN SHOT

OUTPUT

%QUESTION 3
% taking two 2 x 2 matrices
A=[2 4 ; 5 1];
B=[5 6;8 9];
fprintf('Addition of two matrices is :\n');
for i =1:2
for j=1:2
%addition of two matrices
s=A(i,j)+B(i,j);
fprintf('%d ',s);
end
fprintf('\n');
end
SCREEN SHOT

OUTPUT

%QUESTION 4
%QUESTION 4
A=[2 4 ; 9 2 ;3 1];
for i=1 : 3
for j= 1 : 2
% trans_A will take the transpose of the matrix
A
trans_A(j,i)=A(i,j);
end
end
fprintf('Original matrix is :\n');
for i=1 : 3
for j= 1 : 2
fprintf('%d ',A(i,j));
end
fprintf('\n');
end
fprintf('Transpose of the matrix is :\n');
for i=1:2
for j=1:3
fprintf('%d ',trans_A(i,j));
end
fprintf('\n');
end
SCREEN SHOT
OUTPUT

Write a program to find product of a row vector, U having dimension 1 x 2...
row reduction in uncountable dimension.
Part 2. (Row-reduction in countably-infinite dimension) Let V denote the vector space of polynomials (of all degrees). Recall that V is an infinite-dimensional vector space, but it has a countable basis. Consider Te Hom(V, V) defined as T(p())5p () 10p(x - 1) 2.1. Write T as an oo x oo matrix, in the standard basis 1,X, x2, 13,... of V 2.2. Write T as an oo x oo matrix, in the basis 1, + 1,...
Bonus 1 • Write a java program to transpose a matrix mat[N][M], where: 1) You ask the user to input N and M 2) You then ask the user to input the matrix row by row 3) You transpose the matrix 4) You output the transpose to the user
on matlab
(1) Matrices are entered row-wise. Row commas. Enter 1 2 3 (2) Element A, of matrix A is accesser (3) Correcting an entry is easy to (4) Any submatrix of Ais obtained by d row wise. Rows are separated by semicolons and columns are separated by spaces ner A l 23:45 6. B and hit the return/enter kry matrix A is accessed as A Enter and hit the returnerter key an entry is easy through indesine Enter 19...
ote: The norm of is denoted by |vand is calculated N a vector u Consider a subspace W of R4, W span(1, v2, v3, v4)). Where 0 из- 1. Find an orthonormal basis Qw of W and find the dimension of W 2. Find an orthonormal basis QWL of WL and find the dimension of WL 3. GIven a vector u- . find the Qw coordinate of Projw(v) . find the Qwa coordinate of Projwi (v) » find the coordinate...
Exercise 1. Let v = 2 ER3. Recall that the transposed vector u is ū written in row form, 3 that is, of = [1 2 3]. It can be seen as a 1 x 3 matrix. For every vector R3, set f(w) = 1 WER. (i) Show that f: R3 → R defines a linear transformation. (ii) Show that f(ū) > 0. (iii) What are the vectors we R3 such that f(w) = 0?
1.Write a Java program that computes the average of the values of a row in a twodimensional array. You should create a method with the following header: public static double averageRow(double[][] array, int row) Write a test program that reads a matrix from the user and a row index to calculate the average on. Print the result. 2.A square matrix is said to be an upper triangular matrix if the value of the cell is 0 when row > column....
a1 a12 a13 a14 bi by b 2 Denote row i in matrix A above as vector a' and row i in matrix B as vector bn' for example, a aan a3 aul Similarly, denote column k in matrix A as vector and column k in matrix B as vector b. a) Does matrix C AB exist? If no, explain why not. If yes, write it out expressing each element ck as the inner product of the relevant vectors defined...
c and d only
2. Consider the vector space R3 with the standard inner product and the standard norm |x| x, x) Use the formula for projection given in Chapter 5, Section 4.2 of LADW to find the matrix of orthogonal projection P onto the column space of the matrix -) 1 1 A = 2 4 (a) What is the projection matrix P? (b) What is the size of P? (c) Since the dimension of the column space of...
Please write a C++ Program for the following problem >> Vector: Calculation the sum of each two adjacent Numbers.... >>【Description】 Read integer numbers from keyboard and store them into a vector. Calculation the sum of each two adjacent Numbers, store the result into another vector. Then output the result inversely. For example, if the input is 1 2 3 4 5 then the output is 9 7 5 3 【 Input】 There are 5 test cases. For each case, there...
no calculator please
1 (8 pts) Find the dimension and a basis for the following vector spaces. (a) (4 pts) The vector space of all symmetric 2 x 2 matrices (which is a subspace of M22). (b) (4 pts) All vectors of the form (a, b, 2a + 3b) (which is a subspace of R®). 2. (12 pts) Given the matrix in a R R-E form: 1000 3 0110-2 00011 0 0 0 0 0 (a) (6 pts) Find rank(A)...