
function [a] = my_abs(x)
% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe
% my very own function to calculate the absolute value of x

if(x<0)
    a=-x;
else
    a=x;
end

end