%% Write Data to Temporary File
% Create a temporary file name.

filename = tempname;

%
% Create a new file with the temporary file name, and write data to the file.

fileID = fopen(filename,'w');
fwrite(fileID,magic(5));
fclose(fileID);

% Copyright 2012 The MathWorks, Inc.