gridunc - Construct N-D grid of uncertain parameter values

Syntax

uset=gridunc('P1',Values1,'P2',Values2,...)

Description

uset=gridunc('P1',Values1,'P2',Values2,...) takes vectors (for scalar-valued parameters) or cell arrays of values Values1, Values2,... for the uncertain parameters P1, P2,... and constructs uset, an object containing a multidimensional grid of all parameter value combinations.

Optimize the responses based on uncertain parameter values by setting the Optimized property of the uncertain parameter object, uset, to true. (By default, this value is set to false.)

Use the setunc function to set the uncertain parameter values within the response optimization project.

Example

Create a grid of uncertain parameter values for the parameters P, I, and D.

uset=gridunc('P',[1,2,3,4],'I',[0.1,0.2,0.3],'D',[30,35,40])

This returns

    Optimized: [4x3x3 logical]
            P: [4x3x3 double]
            I: [4x3x3 double]
            D: [4x3x3 double]

4x3x3 grid of parameter vectors.

View the data in detail using dot notation. For example:

uset.P
ans(:,:,1) =

     1     1     1
     2     2     2
     3     3     3
     4     4     4

ans(:,:,2) =

     1     1     1
     2     2     2
     3     3     3
     4     4     4

ans(:,:,3) =

     1     1     1
     2     2     2
     3     3     3
     4     4     4

To optimize responses based on all the parameter combinations within uset, enter the following command:

uset.Optimized(1:end)=true;

See Also

randunc, setunc

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS