status = unix(command)
[status, output, duration] = unix(command)
[status, outputs, duration] = unix(commands)
| Parameter | Description |
|---|---|
| command | string scalar or character vector: command to execute in the operating system shell. |
| commands | string array or cell array of character vectors executed as multiple commands. |
| timeouts | scalar or vector of timeout values in seconds. |
| Parameter | Description |
|---|---|
| status | integer exit status returned by the command. |
| output | text captured from command output. |
| duration | execution duration in milliseconds. |
unix executes one command or a collection of commands through the operating system shell and returns exit status values.
With output arguments, Nelson can also return command output text and execution durations. unix follows the same command execution model as system.
[status, output] = unix('echo Nelson')
| Version | Description |
|---|---|
| 2.0.0 | initial version |