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
| Sets for this method … |
| Default |
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
| Some information of the method smodel/subs are listed below: |
| Class name |
smodel |
| Method name |
subs |
| Category |
Helper |
| Package name |
ltpda |
| VCS Version |
f3f3872c69c1252d198e87288372d1367fc6ceec |
| Min input args |
1 |
| Max input args |
-1 |
| Min output args |
1 |
| Max output args |
-1 |
|
Method: smodel/simplifyUnits |
|
Method: smodel/bsubmit |
 |
©LTP Team