home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / GENERAL.DI$ / UNIX.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  807 b   |  27 lines

  1. %UNIX    Execute UNIX operating system command.
  2. %    [status,result] = UNIX('command'), for UNIX systems, calls upon
  3. %    the operating system to execute the given command.  The resulting
  4. %    status and standard output are returned.
  5. %
  6. %    Examples:
  7. %
  8. %        [s,w] = unix('who')
  9. %
  10. %    returns s = 0 and, in w, a MATLAB string containing a list of
  11. %    the users currently logged in.
  12. %
  13. %        [s,w] = unix('why')
  14. %
  15. %    returns a nonzero value in s to indicate failure and sets w to
  16. %    the null matrix because "why" is not a UNIX command.
  17. %
  18. %        [s,m] = unix('matlab')
  19. %
  20. %    never returns because running the second copy of MATLAB requires
  21. %    interactive user input which cannot be provided.
  22. %
  23. %    See also ! (exclamation point) under PUNCT.
  24.  
  25. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  26. %    Built-in function.
  27.