System Operations

system

Syntax

code = system(cmd)
[code, out] = system(cmd)

Description

This runs the command given by cmd with the current shell. If only one result is expected, then the output will be print to the console. If a second result is expected then the output will be captured in a string and returned as a character array.