www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/SetDataTypeOverrideonafiObjectExample.m
%% Set Data Type Override on a fi Object % Set the |DataTypeOverride| property of a |fi| object so that the |fi| % object does not use the data type override settings of the |fipref| object. %% % Set up |fipref| with data type override set to |'TrueDoubles'| for all % numeric types. fipref('DataTypeOverride', 'TrueDoubles') %% % Create a new |fi| object without specifying its |DataTypeOverride| property % so that it uses the data type override settings specified using |fipref|. x = fi(pi, 1, 16, 13) %% % Now create a |fi| object and set its |DataTypeOverride| property to |'Off'| % so that it ignores the data type override settings specified using |fipref|. y = fi(pi, 1, 16, 13, 'DataTypeOverride','Off')