File Operations

Interact with system files and folders, set paths


MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Environment Variables

FILEPATHPathname of a file that is currently loaded
NOTEBOOKFILENotebook file name
WRITEPATHSearch path for the command ‘ Write ’ et al.
READPATHSearch path for the command ‘ Read ’

MuPAD Functions

fcloseClose a file
finputRead objects from file
fnameGet a file's name
fopenOpen file
fprintWrite data to file
freadRead and execute file
ftextinputRead text file
pathnameCreate a platform dependent path name
protocolCreate a protocol of a session
readSearch, read, and execute file
readbytesRead binary data from a file
writebytesWrite binary data to a file
writeWrite values of variables into file
Pref::verboseReadShows reading of files


Set Engine Preferences

Global settings in MuPAD serve for specifying a particular engine you want to run, using additional libraries, startup commands and options.