spawn
SPAWN Spawn a child process (DOS/WINDOWS)
rval = spawn('child process','arg1','arg2',. .'arg9');
child process - any executable
arg1 . . arg9 - arguments passed to the child process
rval - return value from child process
Description
SPAWN a child process (console or windows executable).
Use this in preference to the DOS() function if you need the return value from the child process. DOS() will always return 0 because it executes the child process via COMMAND.COM
COMMAND.COM returns 0 if it has finished succesfully regardless of the child process return value.
Cite As
William Glenn (2026). spawn (https://www.mathworks.com/matlabcentral/fileexchange/341-spawn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Image Sequences and Batch Processing >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
spawn/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
