%% Remainder After Division of Vector
% Find the remainder after division for a vector of integers and the divisor 3.

a = 1:5;
b = 3;
r = rem(a,b)

% Copyright 2012 The MathWorks, Inc.