MATLAB Environment     Search    Help Desk 

Disk File Manipulation and Shell Escape

Disk File Manipulation

Use dir, type, delete, and cd, a set of generic operating system commands, to manipulate files. This table indicates how these commands map to other operating systems.

MATLAB Commands
Windows
UNIX
dir
dir
ls
type
type
cat
delete
del or erase
rm
cd
chdir
cd

Running External Programs

The exclamation point character ! is a shell escape and indicates that the rest of the input line is a command to the operating system. Use this to invoke utilities or run other programs without quitting from MATLAB. After you quit the program, the operating system returns control to MATLAB.

Type help unix or help dos for information about running external programs that return results and status.



[ Previous | Help Desk | Next ]