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

a = 1:5;
m = 3;
b = mod(a,m)

% Copyright 2012 The MathWorks, Inc.