%% Compare Time to Run svd with Multiple Outputs
% Determine how long it takes to run svd with one output argument, s = svd(X).

X = rand(100);
f = @() svd(X);
t1 = timeit(f)

%
% Compare the results to svd with three output arguments, [U,S,V] = svd(X).

t2 = timeit(f,3)

% Copyright 2015 The MathWorks, Inc.