% Math 550 MATLAB Lab Assignment #1
% Initializing Random Number Generator
rand('seed',5230)
% Checking newly created script/function 'rvect()'
v = rvect(3)
v =
5
3
5
u =rvect(3)
u =
0
0
3
% Checking newly created script/function 'rmat()'
A = rmat(3

Math 550A
1
MATLAB Assignment #2
Revised 8/14/10
LAB 2: Orthogonal Projections, the Four Fundamental Subspaces,
QR Factorization, and Inconsistent Linear Systems
In this lab you will use Matlab to study the following topics:
Geometric aspects of vectors:

Math 550A
MATLAB Assignment #1
1
Revised 9/22/10
LAB 1: Gaussian Elimination, LU Factorization, and Solving Ax = b
In this lab you will use Matlab to study the following topics:
Gaussian elimination and reduced row echelon form of a matrix.
The LU (lowe

Math 550A
MATLAB Assignment #4
1
Revised 9/11/15
LAB 4: Unitary Diagonalization of Matrices, QR Algorithm,
Finite Fourier Transform, and Fast Fourier Transform
In this lab you will use Matlab to study the following topics:
Diagonalization of hermitian an

Math 550A
MATLAB Assignment #3
1
Revised 8/14/10
LAB 3: Determinants, Eigenvalues, and Eigenvectors
In this lab you will use Matlab to study the following topics:
The determinant function: its properties and how it is calculated from the P A = LU matrix

Math 550A
MATLAB Assignment #5
1
Revised 12/11/12
LAB 5: Positive-Definite Matrices, Cholesky Factorization,
Singular Value Decomposition, and Digital Image Processing
In this lab you will use Matlab to study the following topics:
Tests for positive-defi

Math 550A
MATLAB Assignment #4
1
Revised 9/11/15
LAB 4: Unitary Diagonalization of Matrices, QR Algorithm,
Finite Fourier Transform, and Fast Fourier Transform
In this lab you will use Matlab to study the following topics:
Diagonalization of hermitian an

% Math 550 MATLAB Lab Assignment #3
% Random Seed
rand('seed',5230)
% Format of diary
format compact
% Question 1 (a)
% Generating a 5x5 random integer matrix.
A = rmat(5,5);
% Swapping rows 1 & 2 of A by defining another matrix B.
B = A; B(2,:) = A(1,:);

% Math 550 MATLAB Lab Assignment #2
% Random Seed
rand('seed', 9260)
% Question 1 (a)
% Generating Random vectors u and v.
u = rvect(3)
u =
5
0
6
v = rvect(3)
v =
1
7
5
nofu = norm(u);
nofv = norm(v);
normofuplusv = norm( u + v )
normofuplusv =
14.