%% Singular Value Decomposition
% Find the singular value decomposition of a rectangular matrix A.

A = [1 2; 3 4; 5 6; 7 8]

%

[U,S,V] = svd(A)

%
% Confirm the relation A = U*S*V', within machine precision.

U*S*V'

% Copyright 2012 The MathWorks, Inc.