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
 
  VERSION:     $Id: subs.m,v 1.11 2011/04/08 08:56:28 hewitson Exp $
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class smodel
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
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.
back to top back to top

Some information of the method smodel/subs are listed below:
Class name smodel
Method name subs
Category Helper
CVS Version $Id: subs.m,v 1.11 2011/04/08 08:56:28 hewitson Exp $
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team