www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SingularValueDecompositionExample.m

    %% 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'