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

    %% Remove fimath Object from fi Object  
% This example shows how to define a |fi| object, define a fimath object,
% attach the |fimath| object to the |fi| object and then, remove the attached
% |fimath| object.   

%%  
a = fi(pi)
%%
f = fimath('RoundingMethod','Floor','OverflowAction','Wrap');
a = setfimath(a,f)
%%
b = removefimath(a)