Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
2027.0.0 - Français


dos (Matlab function)

Execute a UNIX command and return result

Matlab/Scilab equivalent

Matlab Scilab
dos

Particular cases

Matlab returns standard output and standard error merged in cmdout, whereas Scilab returns standard error in a third output argument.

Matlab -echo option is converted to echo=%t.

Examples

Matlab Scilab
[status, cmdout] = dos(command, "-echo")
[status, cmdout] = host(command, echo=%t)
Report an issue
<< docopt (Matlab function) D double (Matlab function) >>

Copyright (c) 2022-2026 (Dassault Systèmes S.E.)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 15 11:14:30 CEST 2026