MATLAB POLYSPACE 7 Guide d'installation Page 148

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 618
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 147
3 Running Functions Command Window and History
!vi yearlystats.m
invokes the vi editor for a file na med yearlystats.m. After the external
program completes or you quit the program, the operating system returns
control to MATLAB. Add
& to the end of the line, such as
!dir &
on Windows platforms to display the output in a separate window or to run
the application in background mode. For example
!excel.exe &
opens Excel and returns control to the Command Window so you can continue
running MATLAB statements.
The maximum length of the argument list provided a s input to the bang (!)
command is determined by any restrictions maintained within the operating
system. If you are running the Windows 2003 Server, for example, the length
of the argument list input to the bang command cannot exceed 512 characters.
See the reference pages for the
unix, dos,andsystem functions for details
about running external programs that return results and status.
Note To execute operating system commands with specific environment
variables, include all com mands to the operating system within the
system
call. Separate the commands using & (ampersand) for DOS, and ; (semicolon)
for UNIX. This applies to the MATLAB
! (bang), dos, unix,andsystem
functions. Another approach is to set environment variables before starting
MATLAB.
On Macintosh platforms, you cannot run AppleScript directly from MATLAB.
However, you can run the Macintosh OS X
osascript function from the
MATLAB
unix or ! (bang) function to run AppleScript from MATLAB.
3-10
Vue de la page 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 617 618

Commentaires sur ces manuels

Pas de commentaire