%% Prime Factors of Unsigned Integer Value

n = uint16(138);
f = factor(n)

%
% Multiply the elements of f to reproduce n.

prod(f)

% Copyright 2012 The MathWorks, Inc.