Products & Services Solutions Academia Support User Community Company

Examples


Use this list to find examples in the documentation.

Getting Started

Converting from Doubles to Fixed Point

Data Types and Scaling

Fixed-Point Format
Constant Scaling for Best Precision
Port Data Type Display

Arithmetic Operations

Rounding to Zero Versus Truncation
Limitations on Precision and Errors
Maximizing Precision
Saturation and Wrapping
Limitations on Range
The Summation Process
Multiplication with Nonzero Biases and Mismatched Fractional Slopes
The Multiplication Process
The Division Process
Conversions and Arithmetic Operations

Realization Structures

Direct Form II
Series Cascade Form
Parallel Form

Feedback Controller Simulation

Introduction to the Tutorial

Producing Lookup Table Data

Square Root Function
Creating Lookup Tables for a Sine Function
Using errmax with Unrestricted Spacing
Using nptsmax with Unrestricted Spacing
Using errmax with Even Spacing
Using nptsmax with Even Spacing
Using errmax with Power of Two Spacing
Using nptsmax with Power of Two Spacing
How the Lookup Tables Determine Input Location
Interpolation for Each Lookup Table

Writing S-Functions

Storage Containers in Simulation Example
Getting the Input Port Data Type
Setting the Output Port Data Type
Interpreting an Input Value
Writing an Output Value
Using the Input Data Type to Determine the Output Data Type

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS