%% Absolute Value of Vector
% Create a numeric vector of real values.

x = [1.3 -3.56 8.23 -5 -0.01]'

%
% Find the absolute value of the elements of the vector.

y = abs(x)

% Copyright 2012 The MathWorks, Inc.