execstr(str)
execstr(str, 'nocatch')
bSuccess = execstr(str, 'errcatch')
| Parameter | Description |
|---|---|
| str | a string: Nelson instruction to execute |
| Parameter | Description |
|---|---|
| bSuccess | a logical: true or false if command fails |
execstr executes Nelson instructions given in a string.
execstr(str, 'nocatch') is equivalent to execstr(str)
execstr can be used as alternative to try ... catch ... end block.
execstr('b = ''hello''; disp(b);')
execstr('b = yyyy')
execstr('b = yyyy', 'nocatch')
r = execstr('b = yyyy', 'errcatch')
| Version | Description |
|---|---|
| 1.0.0 | initial version |