%Summary of this function goes here
%
%   Detailed explanation goes here
%