%% Add a Vector To a Matrix
% Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent step syntax. For example, myObject(x) becomes step(myObject,x).
% Add a 2-by-1 vector to a 2-by-2 matrix along the first dimension of the array.

ava = dsp.ArrayVectorAdder;
a = ones(2);
x = [1 2]';
y = ava(a, x);

% Copyright 2012 The MathWorks, Inc.