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

  1. %DOS    Execute DOS command
  2. %    DOS('command'), for Windows systems, calls upon the DOS shell
  3. %    to execute the given command.  This causes a DOS Window to open
  4. %    and the program, command or batch file is run within that window.
  5. %    When the process is done executing, the window is automatically
  6. %    closed and control returns to the MATLAB Command Window.
  7. %
  8. %    The following trailing characters have special meaning:
  9. %        '|' - Run the DOS command iconically.
  10. %        '&' - Return immediately to MATLAB, do not wait for process
  11. %              to finish.
  12. %
  13. %    Examples:
  14. %
  15. %        dos('edit')
  16. %
  17. %    opens the DOS 5.0 editor in a DOS Window.
  18. %
  19. %        dos('edit file.m &')
  20. %
  21. %    opens the DOS 5.0 editor in a DOS Window, and returns control
  22. %    immediately to MATLAB.
  23. %
  24. %        dos('type file.txt | sort > file.srt |')
  25. %
  26. %    pipes file.txt through the sort command and creates an output
  27. %    file, file.srt.  The only thing that is seen on the screen, 
  28. %    however, is a DOS icon.
  29. %
  30. %    See also ! (exclamation point) under PUNCT.
  31.  
  32. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  33. %    Built-in function.
  34.