%% Calculate the Sum of Squared Elements Using the sumsqr Function
% This example shows how to calculate the sum of squared elements of a matrix and a cell array using the sumsqr function.

m = sumsqr([1 2;3 4])
[m,n] = sumsqr({[1 2; NaN 4], [4 5; 2 3]})

% Copyright 2020 The MathWorks, Inc.