[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/general]

unix

(/tools/hpmatlab/toolbox/matlab/general/unix.m)


Help text

UNIX	Execute UNIX operating system command.
	[status,result] = UNIX('command'), for UNIX systems, calls upon
	the operating system to execute the given command.  The resulting
	status and standard output are returned.

	Examples:

	    [s,w] = unix('who')

	returns s = 0 and, in w, a MATLAB string containing a list of
	the users currently logged in.

	    [s,w] = unix('why')

	returns a nonzero value in s to indicate failure and sets w to
	the null matrix because "why" is not a UNIX command.

	    [s,m] = unix('matlab')

	never returns because running the second copy of MATLAB requires
	interactive user input which cannot be provided.

	See also ! (exclamation point) under PUNCT.

Cross-Reference Information

This is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON