www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RemainderAfterDivisionofVectorExample.m

    %% 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)