在 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 |
主题
构造定点数值对象
- Create Fixed-Point Data
This example shows the basics of how to use the fixed-point numeric object fi. - 查看定点数据
代码示例中使用的fi
对象显示设置。 - 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. - 定点数据类型与内置整数类型
MATLAB® 中定点数据类型与内置整数数据类型的区别。
定点数学设置
- 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
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.
疑难解答
Resolve Error: Mismatched fimath
Troubleshoot mismatched fimath
errors.
对数据类型不匹配错误进行故障排除。
fi*
非 fi
错误故障排除。
fi Constructor Does Not Follow globalfimath Rules
Troubleshoot getting the fi
constructor to follow
globalfimath
rules.