Main Content

rsimsetrtpparam

Set parameters of rtP model parameter structure

Description

rtP = rsimsetrtpparam(rtP,idx) expands the rtP structure to have idx sets of parameters. The rsimsetrtpparam utility defines the values of an existing rtP parameter structure. The rtP structure matches the format of the structure returned by rsimgetrtp('modelName').

rtP = rsimsetrtpparam(rtP,'paramName',paramValue) takes an rtP structure with tunable parameter information and sets the values associated with 'paramName'to be paramValue if possible. There can be more than one name-value pair.

rtP = rsimsetrtpparam(rtP,idx,'paramName',paramValue) takes an rtP structure with tunable parameter information and sets the values associated with 'paramName' to be paramValue in the nth idx parameter set. There can be more than one name-value pair. If the rtP structure does not have idx parameter sets, the first set is copied and appended until there are idx parameter sets. Subsequently, the nth idxset is changed.

Examples

Expand Parameter Sets

Expand the number of parameter sets in the rtp structure to 10.

rtp = rsimsetrtpparam(rtp,10);

Add Parameter Sets

Add three parameter sets to the parameter structure rtp.

rtp = rsimsetrtpparam(rtp,idx,'X1',iX1,'X2',iX2,'Num',iNum);

Input Arguments

collapse all

Output Arguments

collapse all

Introduced in R2009b