Method smodel/setExpr
SETEXPR sets the 'expr' property of the smodel object.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: SETEXPR sets the 'expr' property of the smodel object.
CALL: objs.setExpr(val);
objs.setExpr(plist('expr', val));
objs.setExpr(plist('expression', val));
objs = objs.setExpr(val);
INPUTS: objs: Can be a vector, matrix, list, or a mix of them.
val: Can be any of the following types:
- string e.g. 'x1'
- msym object e.g. msym('x.^2')
- plist with the key 'expression' or 'expr' e.g. plist('expr', {'x1', 'x2'})
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 |
| setExpr |
| EXPR, EXPRESSION |
'' |
none |
Specify the expression to be set. |
Example |
| plist('EXPR', '') |
back to top
| Some information of the method smodel/setExpr are listed below: |
| Class name |
smodel |
| Method name |
setExpr |
| Category |
Helper |
| Package name |
ltpda |
| Can be used as modifier |
1 |
| Supported numeric types |
{'double'} |
|
Method: smodel/setDescription |
|
Method: smodel/setName |
 |
©LTP Team