| << evalin | Core | exist >> | 
| execstr(str) | 
| execstr(str, 'nocatch') | 
| bSuccess = execstr(str, 'errcatch') | 
a string: Nelson instruction to execute
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);')
This example will fail and returns an error message.
execstr('b = yyyy')
This example will fail and returns an error message.
execstr('b = yyyy', 'nocatch')
This example will not fail and return false.
r = execstr('b = yyyy', 'errcatch')
run.
| Version | Description | 
|---|---|
| 1.0.0 | initial version | 
Allan CORNET