The following properties of fipref
objects
are always writable:
FimathDisplay
— Display
options for the local fimath
attributes of a fi
object
DataTypeOverride
— Data
type override options
LoggingMode
— Logging options
for operations performed on fi
objects
NumericTypeDisplay
— Display
options for the numeric type attributes of a fi
object
NumberDisplay
— Display
options for the value of a fi
object
These properties are described in detail in the fi Object Properties.
To learn how to specify properties for fipref
objects
in Fixed-Point
Designer™ software, refer to fipref Object Properties Setting.
You can set properties of fipref
objects
at the time of object creation by including properties after the arguments
of the fipref
constructor function. For example,
to set NumberDisplay
to bin
and NumericTypeDisplay
to short
,
P = fipref('NumberDisplay', 'bin', ... 'NumericTypeDisplay', 'short') P = NumberDisplay: 'bin' NumericTypeDisplay: 'short' FimathDisplay: 'full' LoggingMode: 'Off' DataTypeOverride: 'ForceOff'
You can reference directly into a property for setting or retrieving fipref
object
property values using MATLAB® structure-like referencing. You
do this by using a period to index into a property by name.
For example, to get the NumberDisplay
of P
,
P.NumberDisplay ans = bin
To set the NumericTypeDisplay
of P
,
P.NumericTypeDisplay = 'full' P = NumberDisplay: 'bin' NumericTypeDisplay: 'full' FimathDisplay: 'full' LoggingMode: 'Off' DataTypeOverride: 'ForceOff'