| Contents | Index |
Math Operations
Use the Slider Gain block to vary a scalar gain during a simulation using a slider. The block accepts one input and generates one output.
Data type support for the Slider Gain block is the same as that for the Gain block (see Gain).

Specify the lower limit of the slider range. The default is 0.
Specify the upper limit of the slider range. The default is 2.
The edit fields indicate (from left to right) the lower limit, the current value, 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. Close the dialog box by clicking the Close button.
If you click the left or right arrow of the slider, the current value changes by about 1% of the slider range. If you click the rectangular area to either side of the slider's indicator, the current value changes by about 10% of the slider range.
To apply a vector or matrix gain to the block input, consider using the Gain block.
The following demo models show how to use the Slider Gain block:
aero_six_dof
Direct Feedthrough | Yes |
Sample Time | Inherited from the driving block |
Scalar Expansion | Yes, of the gain |
States | 0 |
Dimensionalized | Yes |
Multidimensionalized | Yes |
Zero-Crossing Detection | No |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |