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

    %% Create Identity Matrix with Fixed-Point Properties  

%% 
% Create a prototype |fi| object, |p|. 
p = fi([],1,16,14);  

%% 
% Create a 3-by-4 identity matrix with the same fixed-point properties as |p|. 
I = eye(3,4,'like',p)