Professional Documents
Culture Documents
Lab Experiment - 5: Problem Statement
Lab Experiment - 5: Problem Statement
Problem Statement:
1. Given a set of n vector in a vector space . Orthogonalize them using Gram-Schmidt procedure. 2. Let A be a matrix of linearly independent vectors. Using Gram-Schmidt process reduce A to a form A=QR. Q=Orthonormal column R=Invertible upper triangular matrix In mathematics, particularly linear algebra and numerical analysis, the GramSchmidt process is a method for ortho-normalising a set of vectors in an inner product space, most commonly the Euclidean space Rn. The GramSchmidt process takes a finite, linearly independent set S = {v1, , vk} for k n and generates an orthogonal set S = {u1, , uk} that spans the same k-dimensional subspace of Rn as S.
Algorithm: 1. Enter the matrix A. 2. Let where independent columns are. 3. Find orthogonal columns corresponding to . 4. Find corresponding to . 5. Now matrix . 6. Similarly find matrix R.
Report by Amit Kumar Singh for TIM-LAB, M.Tech. (VST), Deptt. Of ECE,SOE, Shiv Nadar University
Flow Chart
Report by Amit Kumar Singh for TIM-LAB, M.Tech. (VST), Deptt. Of ECE,SOE, Shiv Nadar University
Report by Amit Kumar Singh for TIM-LAB, M.Tech. (VST), Deptt. Of ECE,SOE, Shiv Nadar University
function [c] = innerproduct(A, B) % this function is used to find the inner product of two row vector c=0; n=size(A,2); m=size(B,2); if (n==m) for i=1:n c=c+A(i)*B(i); end else disp(' matrix dimension not match '); end end
Output matrix Q 1.0000 -1.0000 -1.0000 4.0000 -4.1364 -4.1376 1.0000 -1.0000 -0.9342 matrix R 1.0000 24.0000 39.0000 0 22.0000 -39.9545 0 0 75.9545
Report by Amit Kumar Singh for TIM-LAB, M.Tech. (VST), Deptt. Of ECE,SOE, Shiv Nadar University
Report by Amit Kumar Singh for TIM-LAB, M.Tech. (VST), Deptt. Of ECE,SOE, Shiv Nadar University