MATLAB - File I/O
What will be the output of this MATLAB code?
fileID = fopen('numbers.txt', 'w');
fprintf(fileID, '%d\n', [1 2 3]);
fclose(fileID);
fileID = fopen('numbers.txt', 'r');
data = fscanf(fileID, '%d');
fclose(fileID);
data