function [ssd_y1,differences] = sum_of_square_differences(ssd_u1)

%   Copyright 2016 The MathWorks, Inc.

coder.inline('never');

global g1;
differences = ssd_u1-g1;
ssd_y1 = differences(:).' * differences(:);  % sum of squares

end

