MATLAB: How to open a NULL file on Windows in R2013b

MATLAB

How do I open a NULL file on Windows in R2013b?

Best Answer

To open a NULL file using MATLAB R2013b on Windows, execute the following command:
fid = fopen('NUL ');
Please note that there is now a space between the "L" and the terminating apostrophe.
Prior to MATLAB R2013b, the syntax for opening a NULL file on Windows was:
fid = fopen('NUL:');