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

    %% Remainder After Division of Scalar

%% 
% Compute the remainder after dividing 5 into 23. 
a = 23;
b = 5;
r = rem(a,b)