Create Fixed-Point Objects in MATLAB
fi
and numerictype
for
fixed-point data creationYou can create fixed-point data using the Fixed-Point Designer™
fi
object. Within the fi
constructor, you can specify numerictype
and
fimath
properties. Each
fi
object has an associated
numerictype
object. The
numerictype
object stores information about
the fi
object including word length, fraction
length, and signedness. The numerictype
object
is equivalent to the fixdt
object in
Simulink®.
Functions
Classes
numerictype | Construct an embedded.numerictype object describing fixed-point
or floating-point data type |
Topics
Construct Fixed-Point Numeric Objects
- Create Fixed-Point Data in MATLAB
Fixed point basics. - Performing Fixed-Point Arithmetic
Performing fixed-point arithmetic. - View Fixed-Point Data
fi
object display settings used in code examples. - Ways to Construct fi Objects
Creation offi
objects. - Fixed-Point Versus Built-in Integer Types
Differences between fixed-point data types and built-in integer data types in MATLAB®. - fi Object Functions
Functions that operate directly onfi
objects. - fi Object Properties
Defines thefi
object properties.
Fixed-Point Math Settings
- fimath Object Construction
Creation offimath
objects. - fimath Object Properties
Properties and property settings associated withfimath
objects. - fimath Properties Usage for Fixed-Point Arithmetic
Fixed-point arithmetic usingfimath
objects to control the results. - fimath for Sharing Arithmetic Rules
Using afimath
object to share modular arithmetic information among multiplefi
objects. - fimath for Rounding and Overflow Modes
Order setting for overflow action and rounding method. - fimath ProductMode and SumMode
Differences among the different settings of theProductMode
andSumMode
properties. - How Functions Use fimath
Functions that ignore or discardfimath
.
Fixed-Point Preferences
- Set fi Object Display Preferences Using fipref
Examples of usingfipref
objects to set display preferences forfi
objects. - Data Type Override Preferences Using fipref
Data type override using thefipref
object. - Underflow and Overflow Logging Using fipref
Examples of usingfipref
objects to set logging preferences forfi
objects.
Numeric Type Information
- numerictype Object Construction
Construction ofnumerictype
objects. - numerictype Object Properties
Properties and property settings associated withnumerictype
objects. - numerictype of Fixed-Point Objects
Fields and settings for thenumerictype
object. - numerictype Objects Usage to Share Data Type and Scaling Settings of fi objects
Example of using anumerictype
object to share modular data type and scaling information among multiplefi
objects.
Applications
- Fixed-Point Design Exploration in Parallel
This example shows how to explore and test fixed-point designs by distributing tests across many computers in parallel. - Real-Time Image Acquisition, Image Processing, and Fixed-Point Blob Analysis for Target Practice Analysis
Acquire real-time images from a webcam, process the images using fixed-point blob analysis, and determine world coordinates to score target practice using a laser pistol. - Fixed-Point Filter Design in MATLAB (DSP System Toolbox)
Design filters for use with fixed-point input.
Troubleshooting
Resolve Error: Mismatched fimath
Troubleshoot mismatched fimath
errors.
Resolve Error: Data Type Mismatch
Troubleshoot data type mismatch errors.
Troubleshoot fi*
non-fi
errors.
fi Constructor Does Not Follow globalfimath Rules
Troubleshoot getting the fi
constructor to follow
globalfimath
rules.