Créer des objets à virgule fixe dans MATLAB
fi
et numerictype
pour la création de données à virgule fixeVous pouvez créer des données à virgule fixe à l’aide de l’objet Fixed-Point Designer™ fi
. Dans le constructeur fi
, vous pouvez spécifier les propriétés numerictype
et fimath
. Chaque objet fi
a un objet numerictype
associé. L’objet numerictype
stocke les informations sur l’objet fi
, telles que la longueur de mot, la longueur de la portion fractionnaire et le signe. L’objet numerictype
est équivalent à l’objet fixdt
dans Simulink®.
Fonctions
Classes
numerictype | Construct an embedded.numerictype object describing fixed-point
or floating-point data type |
Rubriques
Construire des objets numériques à virgule fixe
- Create Fixed-Point Data
This example shows the basics of how to use the fixed-point numeric object fi. - Visualisation des données à virgule fixe
Réglages de l’affichage des objetsfi
utilisés dans les exemples de code. - Ways to Construct fi Objects
Buildfi
object constructors in the command line or by using a GUI. - Set fi Object Properties
Tells you how to find more information about the properties associated withfi
objects, and shows you how to set these properties. - Fixed-Point Versus Built-in Integer Types
Differences between fixed-point data types and built-in integer data types in MATLAB®.
Paramètres mathématiques à virgule fixe
- 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
.
Préférences de virgule fixe
- 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.
Informations sur le type numérique
- 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
This example shows how to acquire real-time images from a GigE Vision® camera or webcam, process the images using fixed-point blob analysis, and determine world coordinates to score a laser pistol target.
Résolution des problèmes
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.