% Test Script P3
% Checks out MatLS

randn('seed',0)
clc
format short
% Example 1
m = 10;
n = 5;
A1 = randn(m,n);
A2 = randn(m,n);
B = randn(m,m);
disp('Example 1')
X = MatLS(A1,A2,B)

% Example 2
m = 1000;
n = 5;
A1 = randn(m,n); A1 = A1/norm(A1);
A2 = randn(m,n); A2 = A2/norm(A2);
B = randn(m,m);
disp('Example 2')
X = MatLS(A1,A2,B)