Accelerating the pace of engineering and science

Documentation Center

• Trial Software

gridunc

Multi-dimensional grid of uncertain parameter values

 Note:   gridunc will be removed in a future version.

Syntax

uncpar=gridunc('ParameterName',Values,...)

Description

uncpar=gridunc('ParameterName',Values,...) constructs a multi-dimensional grid that contains all value combinations of uncertain parameters ParameterName. uncpar contains the uncertain parameter values.

Input Arguments

 ParameterName_n Name of the uncertain parameter in a response optimization project. Values_n Values of corresponding uncertain parameter ParameterName_n:{first_value,...,last_value} for vector- or matrix-valued parameters. Dimensions of each cell element of {first_value,...,last_value} must match the dimensions of the parameter.{first_value,...,last_value} or [first_value,...,last_value] for scalar-valued parameters.

Alternatives

To create a grid of uncertain parameter values using the GUI:

1. In the Simulink® model, double-click the Signal Constraint block to open the Block Parameters: Signal Constraint window.

2. In the Block Parameters window, select Optimization > Uncertain Parameters to open the Uncertain Parameters dialog box.

3. Select Grid as the Sampling method.

4. Specify the uncertain parameters and their values:

2. Select the uncertain parameters and click OK to add them to the Uncertain Parameters dialog box.

3. Specify the values for the corresponding parameter in the Sample Values column.

expand all

Algorithms

For parameters with values specified as {first_value,...,last_value} or [first_value,...,last_value], gridunc creates a hypercube which consists of:

• 2S vertices, where S is the number of parameters. first_value and last_value of each parameter form the vertices of the hypercube.

• Number of samples equal to the product of number of values specified for each parameter.