Get a file's name
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
fname(n) returns the name of the file specified
by the file descriptor
The special file descriptor
no file but output to the user interface instead;
We open a temporary file for writing. This yields the file descriptor
n := fopen(TempFile);
We get the file's name. Note that the name depends on the operating system:
A file descriptor returned by