Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Slider Gain

Vary scalar gain using slider

Library

Math Operations

Description

Use the Slider Gain block to modify a scalar gain during a simulation using a slider. The block accepts one input and generates one output.

Data Type Support

Data type support for the Slider Gain block is the same as that for the Gain block (see Gain).

Parameters

Low

Specify the lower limit of the slider range. The default is 0.

High

Specify the upper limit of the slider range. The default is 2.

The edit fields indicate the lower limit and the upper limit. You can change the gain in two ways: by manipulating the slider, or by entering a new value in the current value field. You can change the range of gain values by changing the lower and upper limits.

To apply a vector or matrix gain to the block input, consider using the Gain block.

Examples

The following example models show how to use the Slider Gain block:

  • aero_six_dof

Characteristics

Data Types

Double | Single | Boolean | Base Integer

Sample Time

Inherited from driving block

Direct Feedthrough

Yes

Multidimensional Signals

Yes

Variable-Size Signals

Yes

Zero-Crossing Detection

No

Code Generation

Yes

See Also

Gain

Introduced before R2006a

Was this topic helpful?