None.
Open in the MATLAB editor: x04ac_example
function x04ac_example fprintf('x04ac example results\n\n'); file = 'success.res'; % Associate unit number iounit=4 with filename success.res iounit = int64(4); % Open File for writing to mode = int64(1); [ifail] = x04ac(iounit, file, mode); % write to file here via iounit using x04ba fprintf('The file named %s was opened for writing on unit number %d\n\n', ... file,iounit); % Close File associated with unit number iounit=4 [ifail] = x04ad(iounit); fprintf('Unit number %d has been closed\n', iounit); delete(file);
x04ac example results The file named success.res was opened for writing on unit number 4 Unit number 4 has been closed