| Simulink Reference | ![]() |
Support calculations involving sample time
Library
Description
The Weighted Sample Time Math block adds, subtracts, multiplies, or divides the input signal, u, by a weighted sample time Ts.
You specify the math operation with the Operation parameter. Additionally, you can specify to use only the weight with either the sample time or its inverse.
Enter the weighting factor in the Weight value parameter. If the weight is 1, w is removed from the equation.
Data Type Support
The Weighted Sample Time Math block accepts signals of any data type supported by Simulink, including fixed-point data types.
Parameters and Dialog Box
The Main pane of the Weighted Sample Time Math block dialog appears as follows:
+, -, *, /, Ts only, 1/Ts only.
The Signal data types pane of the Weighted Sample Time Math block dialog appears as follows:
Online Calculations for the Implement using parameter.
Online Calculations for the Implement using parameter.
Characteristics
| Direct Feedthrough |
For all math operations options except Ts and 1/Ts |
| Scalar Expansion |
No, the weight is always a scalar |
| Weighted Sample Time | While Iterator | ![]() |
© 1994-2005 The MathWorks, Inc.