Prior to MATLAB R2013b, the syntax for opening a NULL file on Windows is:
On UNIX/Linux the NULL file is opened by using:
null = fopen('/dev/null')
To open a NULL file using MATLAB R2013b on Windows, the syntax is:
Please note that there is now a space between the "L" and the terminating apostrophe.
The returned file identifier can be used in FPRINTF or FWRITE.
Best Answer