Method smodel/subs


  SUBS substitutes symbolic parameters with the given values.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: SUBS substitutes symbolic parameters with the given values.
 
  CALL:        mdl = mdl.subs(pl)
               mdl = mdl.subs('all')       % Substitutes all parameters
               mdl = mdl.subs('a', 'b')    % Substitutes the parameters 'a' and
                                             'b' with their default values
               mdl = mdl.subs({'a', 'b'})  % Substitutes the parameters 'a' and
                                             'b' with their default values
               mdl = mdl.subs('a', 33)     % Substitutes the parameters 'a'
                                             with 33
               mdl = mdl.subs({'a'}, {33}) % Substitutes the parameters 'a'
                                             with 33
 
  Examples
  --------
 
  1)   m = subs(m, plist('Params', 'all')) % substitute all default values
  2)   m = subs(m, plist('Params', {'a', 'b'}, 'Values',{1, 1:10})) % substitute
                                                             values
  3)   m = subs(m, plist('Params', {'a', 'b'})) % substitute default values
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class smodel
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
subs
PARAMS 'all' none The parameters to substitute for.
Specify 'all' to substitute all.
VALUES {} [0x0] none A cell-array of values to set that overide the defaults.
EXCEPTIONS {} [0x0] none A cell-array of parameters which will not be substitute.

Example

plist('PARAMS', 'all', 'VALUES', cell(0,0), 'EXCEPTIONS', cell(0,0))

back to top back to top

Some information of the method smodel/subs are listed below:
Class name smodel
Method name subs
Category Helper
Package name ltpda
VCS Version 967b0eec0dece803a81af8ef54ad2f8c784b20b2
Min input args 1
Max input args -1
Min output args 1
Max output args -1
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team