Detektion von Überschreitungen und Präzisionsverlusten
Debugging von Überschreitungs- und Präzisionsverlust-Quellen, Vergleichen mit Gleitkommaverhalten
Identifizieren, verfolgen und debuggen Sie Quellen von Überschreitungen, Präzisionsverlusten und verschwendeten Bereichen oder verschwendeter Präzision. Vergleichen Sie die Embedded-Implementierung mit dem idealen Gleitkomma-Verhalten.
Funktionen
fixed.unifiedErrorCalculator.absoluteError | Absolute error of two numeric inputs (Seit R2023b) |
fixed.unifiedErrorCalculator.bitsOfError | Bits of error of two numeric inputs (Seit R2023b) |
fixed.unifiedErrorCalculator.relativeAbsoluteError | Relative absolute error of two numeric inputs (Seit R2023b) |
Themen
MATLAB
- 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. - Enable Plotting Using the Simulation Data Inspector
Inspect and compare floating-point and fixed-point logged input and output data. - Custom Plot Functions
Visualize numerical differences during fixed-point conversion. - Detect Overflows
Detect overflows at the command line.
Simulink
- Use the Fixed-Point Tool to Explore Numerical Behavior
Example showing how to use the Fixed-Point Tool to compare floating-point and fixed-point data types. - Handle Overflows in Simulink Models
Control the warning messages you receive when a model contains an overflow. - Net Slope and Net Bias Precision
Net slope and bias precision, detecting precision loss, underflow, and overflow. - Detect Fixed-Point Constant Precision Loss
This example shows how to detect fixed-point constant precision loss. - Use Scaled Doubles to Avoid Precision Loss
How to avoid precision loss by overriding the data types in your model with scaled doubles.