This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Sample Time Math Operations Using the Weighted Sample Time Math Block

This example shows how to add the sample time value to a signal using the Weighted Sample Time Math block.

Using the Weighted Sample Time block, you can see the sample time of this model is 0.2. When you set the Operation parameter to + and the Weight value to 1 on the Weighted Sample Time Math block, the block adds the sample time value of 0.2 to the input signal. When you set the Weight value to 3 in the Weighted Sample Time Math1 block, the block adds Ts*3 to the input signal, thus increasing each value by 0.6.