在 MATLAB 中创建定点对象
使用
fi 和 numerictype 创建定点数据您可以使用 Fixed-Point Designer™ fi 对象创建定点数据。在 fi 构造函数中,您可以指定 numerictype 和 fimath 属性。每个 fi 对象都有关联的 numerictype 对象。numerictype 对象存储关于 fi 对象的信息,包括字长、小数长度和符号性。numerictype 对象相当于 Simulink® 中的 fixdt 对象。
函数
类
numerictype | 构造描述定点或浮点数据类型的 embedded.numerictype 对象 |
主题
构造定点数值对象
- 创建定点数据
此示例说明如何使用定点数值对象 fi 的基础知识。 - 查看定点数据
使用fipref控制定点数据属性的显示。 - Ways to Construct fi Objects
Buildfiobject 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 withfiobjects, and shows you how to set these properties. - 定点数据类型与内置整数类型
MATLAB® 中定点数据类型与内置整数数据类型的区别。
定点数学设置
- fimath Object Construction
Creation offimathobjects. - fimath Object Properties
Properties and property settings associated withfimathobjects. - fimath Properties Usage for Fixed-Point Arithmetic
Fixed-point arithmetic usingfimathobjects to control the results. - fimath for Sharing Arithmetic Rules
Using afimathobject to share modular arithmetic information among multiplefiobjects. - 用于舍入和溢出模式的 fimath
溢出操作和舍入方法的顺序设置。 - fimath ProductMode and SumMode
Differences among the different settings of theProductModeandSumModeproperties. - 函数如何使用 fimath
忽略或丢弃fimath的函数。
定点预设项
- Set fi Object Display Preferences Using fipref
Examples of usingfiprefobjects to set display preferences forfiobjects. - Data Type Override Preferences Using fipref
Data type override using thefiprefobject. - Underflow and Overflow Logging Using fipref
Examples of usingfiprefobjects to set logging preferences forfiobjects.
数值类型信息
- numerictype Object Construction
Construction ofnumerictypeobjects. - numerictype Object Properties
Properties and property settings associated withnumerictypeobjects. - numerictype of Fixed-Point Objects
Fields and settings for thenumerictypeobject. - numerictype Objects Usage to Share Data Type and Scaling Settings of fi objects
Example of using anumerictypeobject to share modular data type and scaling information among multiplefiobjects.
应用领域
- 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.
疑难解答
对不匹配的 fimath 错误进行故障排除。
对数据类型不匹配错误进行故障排除。
fi* 非 fi 错误故障排除。
fi Constructor Does Not Follow globalfimath Rules
Troubleshoot getting the fi constructor to follow
globalfimath rules.

