在 MATLAB 中创建定点对象
使用
fi
和 numerictype
创建定点数据您可以使用 Fixed-Point Designer™ fi
对象创建定点数据。在 fi
构造函数中,您可以指定 numerictype
和 fimath
属性。每个 fi
对象都有关联的 numerictype
对象。numerictype
对象存储关于 fi
对象的信息,包括字长、小数长度和符号性。numerictype
对象相当于 Simulink® 中的 fixdt
对象。
函数
类
numerictype | Construct an embedded.numerictype object describing fixed-point
or floating-point data type |
主题
构造定点数值对象
- 在 MATLAB 中创建定点数据
定点基础知识。 - 正在执行定点算术。
执行定点算术。 - 查看定点数据
代码示例中使用的fi
对象显示设置。 - 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 对象函数
直接对fi
对象执行运算的函数。 - fi Object Properties
Defines thefi
object properties.
定点数学设置
- 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
.
定点预设项
- 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.
数值类型信息
- 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.
应用领域
- 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.
疑难解答
Resolve Error: Mismatched fimath
Troubleshoot mismatched fimath
errors.
对数据类型不匹配错误进行故障排除。
Troubleshoot fi*
non-fi
errors.
fi Constructor Does Not Follow globalfimath Rules
Troubleshoot getting the fi
constructor to follow
globalfimath
rules.