Skip to content

unix

miscellaneous · scripts/miscellaneous/unix.m

: status = unix (command)
: [status, result] = unix (command)
: [status, result] = unix (command, "-echo")

Execute command with the system shell and return status / stdout.

On every platform this forwards to system, matching MATLAB R2026a (including Windows). With "-echo" the captured stdout is also printed via system’s "-echo" option.