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

    %% Integer Division  

%% 
% Divide an |int16| scalar value by each element of an |int16| vector. 
a = int16(10);
b = int16([3 4 6]);
x = a./b 

%%
% MATLAB(R) rounds the results when dividing integer data types.