Contents     Functions         Previous Next     PDF Index

fe_range

Purpose

fe_range commands are used to manipulate experiment (series of design points) specifications.

Description

A range is the description of a set of experiments through a data structure with fields

.param fields must match string values in .lab. Each field is a struct with possible fields

Commands

curveGrid

display

fromRO

Grid

Range=fe_range('Grid',par);
Range is defined by a grid of all the parameter values defined in par.

par is expected to be a cell array with as many elements as parameters. Each cell can be

par can also be a matrix following the model of the visco tools parameters definition (see fevisco Range for more details).

As an illustration, following example defines a grid 6x7 of 2 parameters named length and thickness:

par={'lab "length" min 10 max 20 cur 10 scale "lin" NPoints 6',...
     'lab "thickness" min 1e-3 max 2e-3 cur 0 scale "log" NPoints 7'};
Range=fe_range('Grid',par);

GridFace

lab[,def]

labFcn

Loop

Res

R1=fe_range('Res',R1,Range);
This command reshapes the last dimension of the result curve R1 according to the Range. For a grid DOE last dimension is split in as many dimensions as parameters. For a vector DOE, last dimension is only redefined by a cell array of labels defining each design point.

Sel

This command allows selection of design points in a DOE. Provided a Range DOE structure, it will return the indices in the val field corresponding to the sequential application of selection rules.

The selection rules a provided in a cell array of three columns and as many lines as rules to apply under the format
{param_name,'rule','crit';...}.
The following types of rules are supported, defined by a string,

Excepted for sortrows, other rules are sequentially applied to the current sampled Range. Sorting is thus only fully effective if last performed.

Simple

Generates a DOE model with sequential variation of each parameter, the other ones being fixed to their nominal value. par has the same format than for the fe_range Grid input. They may feature a field nom providing a nominal value to each parameter, if this field is omitted the nominal value is considered to be the starting value of the parameter. In the case where par has been defined as a string input, field nom is taken to be the cur input value.

par={'lab "length" min 10 max 20 cur 10 scale "lin" NPoints 6',...
     'lab "thickness" min 1e-3 max 2e-3 cur 0 scale "log" NPoints 7'};
Range=fe_range('Simple',par);

Tree

Vect

Range=fe_range('Vect',par);
Simply concatenate all parameter ranges (they must have the same length) into a functional Range. par has the same format than for the fe_range Grid input. In addition, all par entries provided should have the same number of points.

Vect command is used to generate single par structures to feed Range.param entries.

par={'lab "length" min 10 max 20 cur 10 scale "lin" NPoints 7',...
     'lab "thickness" min 1e-3 max 2e-3 cur 0 scale "log" NPoints 7'};
Range=fe_range('Vect',par);

See also

rangemodel


©1991-2014 by SDTools
Previous Up Next